class Bandwidth::ConferenceMemberState

ConferenceMemberState Model.

Attributes

call_id[RW]

TODO: Write general description for this method @return [String]

call_ids_to_coach[RW]

TODO: Write general description for this method @return [List of String]

conference_id[RW]

TODO: Write general description for this method @return [String]

hold[RW]

TODO: Write general description for this method @return [Boolean]

member_url[RW]

TODO: Write general description for this method @return [String]

mute[RW]

TODO: Write general description for this method @return [Boolean]

Public Class Methods

from_hash(hash) click to toggle source

Creates an instance of the object from a hash.

# File lib/bandwidth/voice_lib/voice/models/conference_member_state.rb, line 60
def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  call_id = hash['callId']
  conference_id = hash['conferenceId']
  member_url = hash['memberUrl']
  mute = hash['mute']
  hold = hash['hold']
  call_ids_to_coach = hash['callIdsToCoach']

  # Create object from extracted values.
  ConferenceMemberState.new(call_id,
                            conference_id,
                            member_url,
                            mute,
                            hold,
                            call_ids_to_coach)
end
names() click to toggle source

A mapping from model property names to API property names.

# File lib/bandwidth/voice_lib/voice/models/conference_member_state.rb, line 34
def self.names
  @_hash = {} if @_hash.nil?
  @_hash['call_id'] = 'callId'
  @_hash['conference_id'] = 'conferenceId'
  @_hash['member_url'] = 'memberUrl'
  @_hash['mute'] = 'mute'
  @_hash['hold'] = 'hold'
  @_hash['call_ids_to_coach'] = 'callIdsToCoach'
  @_hash
end
new(call_id = nil, conference_id = nil, member_url = nil, mute = nil, hold = nil, call_ids_to_coach = nil) click to toggle source
# File lib/bandwidth/voice_lib/voice/models/conference_member_state.rb, line 45
def initialize(call_id = nil,
               conference_id = nil,
               member_url = nil,
               mute = nil,
               hold = nil,
               call_ids_to_coach = nil)
  @call_id = call_id
  @conference_id = conference_id
  @member_url = member_url
  @mute = mute
  @hold = hold
  @call_ids_to_coach = call_ids_to_coach
end