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



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

def  = data['accountId']

#api_application_idObject



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

def api_application_id = data['apiApplicationId']

#created_atObject



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

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

#environmentObject



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

def environment = data['environment']

#expires_atObject



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

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

#external_subjectObject



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

def external_subject = data['externalSubject']

#game_idObject



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

def game_id = data['gameId']

#idObject



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

def id = data['id']

#last_used_atObject



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

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

#revoked_atObject



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

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

#scopesObject



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

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

#updated_atObject



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

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