class Bandwidth::AccountsParticipantsResponse
AccountsParticipantsResponse
Model.
Attributes
participant[RW]
A participant object @return [Participant]
token[RW]
Auth token for the returned participant This should be passed to the participant so that they can connect to the platform @return [String]
Public Class Methods
from_hash(hash)
click to toggle source
Creates an instance of the object from a hash.
# File lib/bandwidth/web_rtc_lib/web_rtc/models/accounts_participants_response.rb, line 34 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. participant = Participant.from_hash(hash['participant']) if hash['participant'] token = hash['token'] # Create object from extracted values. AccountsParticipantsResponse.new(participant, token) end
names()
click to toggle source
A mapping from model property names to API property names.
# File lib/bandwidth/web_rtc_lib/web_rtc/models/accounts_participants_response.rb, line 20 def self.names @_hash = {} if @_hash.nil? @_hash['participant'] = 'participant' @_hash['token'] = 'token' @_hash end
new(participant = nil, token = nil)
click to toggle source
# File lib/bandwidth/web_rtc_lib/web_rtc/models/accounts_participants_response.rb, line 27 def initialize(participant = nil, token = nil) @participant = participant @token = token end