Class: CardDB::DeckSessionToken

Inherits:
Resource
  • Object
show all
Defined in:
lib/carddb/collection.rb

Instance Attribute Summary

Attributes inherited from Resource

#client, #data

Instance Method Summary collapse

Methods inherited from Resource

#[], #initialize, #key?, #to_h, #to_json

Constructor Details

This class inherits a constructor from CardDB::Resource

Instance Method Details

#account_idObject



2070
# File 'lib/carddb/collection.rb', line 2070

def  = data['accountId']

#api_application_idObject



2071
# File 'lib/carddb/collection.rb', line 2071

def api_application_id = data['apiApplicationId']

#created_atObject



2079
# File 'lib/carddb/collection.rb', line 2079

def created_at = parse_time(data['createdAt'])

#environmentObject



2073
# File 'lib/carddb/collection.rb', line 2073

def environment = data['environment']

#expires_atObject



2076
# File 'lib/carddb/collection.rb', line 2076

def expires_at = parse_time(data['expiresAt'])

#external_subjectObject



2074
# File 'lib/carddb/collection.rb', line 2074

def external_subject = data['externalSubject']

#game_idObject



2072
# File 'lib/carddb/collection.rb', line 2072

def game_id = data['gameId']

#idObject



2069
# File 'lib/carddb/collection.rb', line 2069

def id = data['id']

#last_used_atObject



2078
# File 'lib/carddb/collection.rb', line 2078

def last_used_at = parse_time(data['lastUsedAt'])

#revoked_atObject



2077
# File 'lib/carddb/collection.rb', line 2077

def revoked_at = parse_time(data['revokedAt'])

#scopesObject



2075
# File 'lib/carddb/collection.rb', line 2075

def scopes = data['scopes'] || []

#updated_atObject



2080
# File 'lib/carddb/collection.rb', line 2080

def updated_at = parse_time(data['updatedAt'])