Sha256: e150a018515c4ee5f4a8aba9fcd629af5c5ce8abe76c87d02e566b137ae01a6d
Contents?: true
Size: 1.28 KB
Versions: 18
Compression:
Stored size: 1.28 KB
Contents
# bandwidth # # This file was automatically generated by APIMATIC v2.0 # ( https://apimatic.io ). module Bandwidth # AccountsParticipantsResponse Model. class AccountsParticipantsResponse < BaseModel # A participant object # @return [Participant] attr_accessor :participant # Auth token for the returned participant # This should be passed to the participant so that they can connect to the # platform # @return [String] attr_accessor :token # A mapping from model property names to API property names. def self.names @_hash = {} if @_hash.nil? @_hash['participant'] = 'participant' @_hash['token'] = 'token' @_hash end def initialize(participant = nil, token = nil) @participant = participant @token = token end # Creates an instance of the object from a hash. 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 end end
Version data entries
18 entries across 18 versions & 1 rubygems