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