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
1149
|
# File 'lib/carddb/collection.rb', line 1149
def card_aspect_ratio = data['cardAspectRatio']
|
#config ⇒ Object
1151
|
# File 'lib/carddb/collection.rb', line 1151
def config = data['config'] || {}
|
#coordinate_space ⇒ Object
1148
|
# File 'lib/carddb/collection.rb', line 1148
def coordinate_space = data['coordinateSpace']
|
#created_at ⇒ Object
1152
|
# File 'lib/carddb/collection.rb', line 1152
def created_at = parse_time(data['createdAt'])
|
#dataset_key ⇒ Object
1146
|
# File 'lib/carddb/collection.rb', line 1146
def dataset_key = data['datasetKey']
|
#default? ⇒ Boolean
1143
|
# File 'lib/carddb/collection.rb', line 1143
def default? = !!data['isDefault']
|
#example_file_id ⇒ Object
1147
|
# File 'lib/carddb/collection.rb', line 1147
def example_file_id = data['exampleFileId']
|
#game_key ⇒ Object
1145
|
# File 'lib/carddb/collection.rb', line 1145
def game_key = data['gameKey']
|
#id ⇒ Object
1138
|
# File 'lib/carddb/collection.rb', line 1138
def id = data['id']
|
#key ⇒ Object
1139
|
# File 'lib/carddb/collection.rb', line 1139
def key = data['key']
|
#name ⇒ Object
1140
|
# File 'lib/carddb/collection.rb', line 1140
def name = data['name']
|
#notes ⇒ Object
1150
|
# File 'lib/carddb/collection.rb', line 1150
def notes = data['notes']
|
#publisher_slug ⇒ Object
1144
|
# File 'lib/carddb/collection.rb', line 1144
def publisher_slug = data['publisherSlug']
|
#regions ⇒ Object
1155
1156
1157
|
# File 'lib/carddb/collection.rb', line 1155
def regions
@regions ||= (data['regions'] || []).map { |region| ScanTemplateRegion.new(region, client: client) }
end
|
#status ⇒ Object
1141
|
# File 'lib/carddb/collection.rb', line 1141
def status = data['status']
|
#updated_at ⇒ Object
1153
|
# File 'lib/carddb/collection.rb', line 1153
def updated_at = parse_time(data['updatedAt'])
|
#version ⇒ Object
1142
|
# File 'lib/carddb/collection.rb', line 1142
def version = data['version']
|