Class: Bandwidth::ConferenceMember

Inherits:
Object
  • Object
show all
Extended by:
ClientWrapper
Includes:
ApiItem, PlayAudioExtensions
Defined in:
lib/bandwidth/conference_member.rb

Overview

Conference member

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ClientWrapper

wrap_client_arg

Methods included from PlayAudioExtensions

#play_recording, #speak_sentence

Methods included from ApiItem

#[], #[]=, #initialize, #to_data

Instance Attribute Details

#conference_idObject

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

Examples:

member.play_audio(:file_url => "http://host1")

Parameters:

  • data (Hash)

    audio data



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.

Examples:

member.update(:mute=>true)

Parameters:

  • data (Hash)

    changed data



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