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

Version Path
bandwidth-sdk-8.0.0 lib/bandwidth/web_rtc_lib/web_rtc/models/accounts_participants_response.rb
bandwidth-sdk-7.1.0 lib/bandwidth/web_rtc_lib/web_rtc/models/accounts_participants_response.rb
bandwidth-sdk-7.0.0 lib/bandwidth/web_rtc_lib/web_rtc/models/accounts_participants_response.rb
bandwidth-sdk-6.2.0 lib/bandwidth/web_rtc_lib/web_rtc/models/accounts_participants_response.rb
bandwidth-sdk-6.1.0 lib/bandwidth/web_rtc_lib/web_rtc/models/accounts_participants_response.rb
bandwidth-sdk-6.0.0 lib/bandwidth/web_rtc_lib/web_rtc/models/accounts_participants_response.rb
bandwidth-sdk-5.0.0 lib/bandwidth/web_rtc_lib/web_rtc/models/accounts_participants_response.rb
bandwidth-sdk-4.0.0 lib/bandwidth/web_rtc_lib/web_rtc/models/accounts_participants_response.rb
bandwidth-sdk-3.13.2 lib/bandwidth/web_rtc_lib/web_rtc/models/accounts_participants_response.rb
bandwidth-sdk-3.13.1 lib/bandwidth/web_rtc_lib/web_rtc/models/accounts_participants_response.rb
bandwidth-sdk-3.13.0 lib/bandwidth/web_rtc_lib/web_rtc/models/accounts_participants_response.rb
bandwidth-sdk-3.12.1 lib/bandwidth/web_rtc_lib/web_rtc/models/accounts_participants_response.rb
bandwidth-sdk-3.12.0 lib/bandwidth/web_rtc_lib/web_rtc/models/accounts_participants_response.rb
bandwidth-sdk-3.11.0 lib/bandwidth/web_rtc_lib/web_rtc/models/accounts_participants_response.rb
bandwidth-sdk-3.10.0 lib/bandwidth/web_rtc_lib/web_rtc/models/accounts_participants_response.rb
bandwidth-sdk-3.9.0 lib/bandwidth/web_rtc_lib/web_rtc/models/accounts_participants_response.rb
bandwidth-sdk-3.8.0 lib/bandwidth/web_rtc_lib/web_rtc/models/accounts_participants_response.rb
bandwidth-sdk-3.7.0 lib/bandwidth/web_rtc_lib/web_rtc/models/accounts_participants_response.rb