Sha256: 673453285b1913261e54a6ebb380b3b2d7fa6a6c90ad804a66e4384da103eefa

Contents?: true

Size: 987 Bytes

Versions: 18

Compression:

Stored size: 987 Bytes

Contents

# bandwidth
#
# This file was automatically generated by APIMATIC v2.0
# ( https://apimatic.io ).

module Bandwidth
  # A session object
  class Session < BaseModel
    # Unique id of the session
    # @return [String]
    attr_accessor :id

    # User defined tag to associate with the session
    # @return [String]
    attr_accessor :tag

    # A mapping from model property names to API property names.
    def self.names
      @_hash = {} if @_hash.nil?
      @_hash['id'] = 'id'
      @_hash['tag'] = 'tag'
      @_hash
    end

    def initialize(id = nil,
                   tag = nil)
      @id = id
      @tag = tag
    end

    # Creates an instance of the object from a hash.
    def self.from_hash(hash)
      return nil unless hash

      # Extract variables from the hash.
      id = hash['id']
      tag = hash['tag']

      # Create object from extracted values.
      Session.new(id,
                  tag)
    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/session.rb
bandwidth-sdk-7.1.0 lib/bandwidth/web_rtc_lib/web_rtc/models/session.rb
bandwidth-sdk-7.0.0 lib/bandwidth/web_rtc_lib/web_rtc/models/session.rb
bandwidth-sdk-6.2.0 lib/bandwidth/web_rtc_lib/web_rtc/models/session.rb
bandwidth-sdk-6.1.0 lib/bandwidth/web_rtc_lib/web_rtc/models/session.rb
bandwidth-sdk-6.0.0 lib/bandwidth/web_rtc_lib/web_rtc/models/session.rb
bandwidth-sdk-5.0.0 lib/bandwidth/web_rtc_lib/web_rtc/models/session.rb
bandwidth-sdk-4.0.0 lib/bandwidth/web_rtc_lib/web_rtc/models/session.rb
bandwidth-sdk-3.13.2 lib/bandwidth/web_rtc_lib/web_rtc/models/session.rb
bandwidth-sdk-3.13.1 lib/bandwidth/web_rtc_lib/web_rtc/models/session.rb
bandwidth-sdk-3.13.0 lib/bandwidth/web_rtc_lib/web_rtc/models/session.rb
bandwidth-sdk-3.12.1 lib/bandwidth/web_rtc_lib/web_rtc/models/session.rb
bandwidth-sdk-3.12.0 lib/bandwidth/web_rtc_lib/web_rtc/models/session.rb
bandwidth-sdk-3.11.0 lib/bandwidth/web_rtc_lib/web_rtc/models/session.rb
bandwidth-sdk-3.10.0 lib/bandwidth/web_rtc_lib/web_rtc/models/session.rb
bandwidth-sdk-3.9.0 lib/bandwidth/web_rtc_lib/web_rtc/models/session.rb
bandwidth-sdk-3.8.0 lib/bandwidth/web_rtc_lib/web_rtc/models/session.rb
bandwidth-sdk-3.7.0 lib/bandwidth/web_rtc_lib/web_rtc/models/session.rb