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



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

def  = data['accountId']

#api_application_idObject



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

def api_application_id = data['apiApplicationId']

#created_atObject



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

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

#environmentObject



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

def environment = data['environment']

#expires_atObject



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

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

#external_subjectObject



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

def external_subject = data['externalSubject']

#game_idObject



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

def game_id = data['gameId']

#idObject



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

def id = data['id']

#last_used_atObject



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

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

#revoked_atObject



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

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

#scopesObject



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

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

#updated_atObject



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

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