Class: Bandwidth::ConferenceMember
- Inherits:
-
Object
- Object
- Bandwidth::ConferenceMember
- Extended by:
- ClientWrapper
- Includes:
- ApiItem, PlayAudioExtensions
- Defined in:
- lib/bandwidth/conference_member.rb
Overview
Conference member
Instance Attribute Summary collapse
-
#conference_id ⇒ Object
Returns the value of attribute conference_id.
Instance Method Summary collapse
-
#play_audio(data) ⇒ Object
Play audio to a conference member.
-
#update(data) ⇒ Object
Update a conference member.
Methods included from ClientWrapper
Methods included from PlayAudioExtensions
#play_recording, #speak_sentence
Methods included from ApiItem
#[], #[]=, #initialize, #to_data
Instance Attribute Details
#conference_id ⇒ Object
Returns the value of attribute conference_id
7 8 9 |
# File 'lib/bandwidth/conference_member.rb', line 7 def conference_id @conference_id end |
Instance Method Details
#play_audio(data) ⇒ Object
Play audio to a conference member
21 22 23 |
# File 'lib/bandwidth/conference_member.rb', line 21 def play_audio(data) @client.make_request(:post, @client.concat_user_path("#{CONFERENCE_PATH}/#{@conference_id}/members/#{id}/audio"), data)[0] end |
#update(data) ⇒ Object
Update a conference member. E.g.: remove from call, mute, hold, etc.
13 14 15 |
# File 'lib/bandwidth/conference_member.rb', line 13 def update(data) @client.make_request(:post, @client.concat_user_path("#{CONFERENCE_PATH}/#{@conference_id}/members/#{id}"), data)[0] end |