Class: CardDB::ScanTemplate
Instance Attribute Summary
Attributes inherited from Resource
#client, #data
Instance Method Summary
collapse
Methods inherited from Resource
#[], #initialize, #key?, #to_h, #to_json
Instance Method Details
#card_aspect_ratio ⇒ Object
1199
|
# File 'lib/carddb/collection.rb', line 1199
def card_aspect_ratio = data['cardAspectRatio']
|
#config ⇒ Object
1201
|
# File 'lib/carddb/collection.rb', line 1201
def config = data['config'] || {}
|
#coordinate_space ⇒ Object
1198
|
# File 'lib/carddb/collection.rb', line 1198
def coordinate_space = data['coordinateSpace']
|
#created_at ⇒ Object
1202
|
# File 'lib/carddb/collection.rb', line 1202
def created_at = parse_time(data['createdAt'])
|
#dataset_key ⇒ Object
1196
|
# File 'lib/carddb/collection.rb', line 1196
def dataset_key = data['datasetKey']
|
#default? ⇒ Boolean
1193
|
# File 'lib/carddb/collection.rb', line 1193
def default? = !!data['isDefault']
|
#example_file_id ⇒ Object
1197
|
# File 'lib/carddb/collection.rb', line 1197
def example_file_id = data['exampleFileId']
|
#game_key ⇒ Object
1195
|
# File 'lib/carddb/collection.rb', line 1195
def game_key = data['gameKey']
|
#id ⇒ Object
1188
|
# File 'lib/carddb/collection.rb', line 1188
def id = data['id']
|
#key ⇒ Object
1189
|
# File 'lib/carddb/collection.rb', line 1189
def key = data['key']
|
#name ⇒ Object
1190
|
# File 'lib/carddb/collection.rb', line 1190
def name = data['name']
|
#notes ⇒ Object
1200
|
# File 'lib/carddb/collection.rb', line 1200
def notes = data['notes']
|
#publisher_slug ⇒ Object
1194
|
# File 'lib/carddb/collection.rb', line 1194
def publisher_slug = data['publisherSlug']
|
#regions ⇒ Object
1205
1206
1207
|
# File 'lib/carddb/collection.rb', line 1205
def regions
@regions ||= (data['regions'] || []).map { |region| ScanTemplateRegion.new(region, client: client) }
end
|
#status ⇒ Object
1191
|
# File 'lib/carddb/collection.rb', line 1191
def status = data['status']
|
#updated_at ⇒ Object
1203
|
# File 'lib/carddb/collection.rb', line 1203
def updated_at = parse_time(data['updatedAt'])
|
#version ⇒ Object
1192
|
# File 'lib/carddb/collection.rb', line 1192
def version = data['version']
|