Class: CardDB::DeckEntry
Overview
Wrapper for hosted DeckEntry objects
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
#annotations ⇒ Object
2383
2384
2385
|
# File 'lib/carddb/collection.rb', line 2383
def annotations
data['annotations'] || {}
end
|
#dataset_id ⇒ Object
2359
2360
2361
|
# File 'lib/carddb/collection.rb', line 2359
def dataset_id
data['datasetId']
end
|
#display ⇒ Object
2387
2388
2389
|
# File 'lib/carddb/collection.rb', line 2387
def display
data['display'] || {}
end
|
#id ⇒ Object
2355
2356
2357
|
# File 'lib/carddb/collection.rb', line 2355
def id
data['id']
end
|
#identifier ⇒ Object
2367
2368
2369
|
# File 'lib/carddb/collection.rb', line 2367
def identifier
data['identifier']
end
|
#quantity ⇒ Object
2371
2372
2373
|
# File 'lib/carddb/collection.rb', line 2371
def quantity
data['quantity']
end
|
#record ⇒ Object
2391
2392
2393
|
# File 'lib/carddb/collection.rb', line 2391
def record
@record ||= data['record'] ? Record.new(data['record'], client: client) : nil
end
|
#record_id ⇒ Object
2363
2364
2365
|
# File 'lib/carddb/collection.rb', line 2363
def record_id
data['recordId']
end
|
#section ⇒ Object
2375
2376
2377
|
# File 'lib/carddb/collection.rb', line 2375
def section
data['section']
end
|
#sort_order ⇒ Object
2379
2380
2381
|
# File 'lib/carddb/collection.rb', line 2379
def sort_order
data['sortOrder']
end
|