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
2457
2458
2459
|
# File 'lib/carddb/collection.rb', line 2457
def annotations
data['annotations'] || {}
end
|
#dataset_id ⇒ Object
2433
2434
2435
|
# File 'lib/carddb/collection.rb', line 2433
def dataset_id
data['datasetId']
end
|
#display ⇒ Object
2461
2462
2463
|
# File 'lib/carddb/collection.rb', line 2461
def display
data['display'] || {}
end
|
#id ⇒ Object
2429
2430
2431
|
# File 'lib/carddb/collection.rb', line 2429
def id
data['id']
end
|
#identifier ⇒ Object
2441
2442
2443
|
# File 'lib/carddb/collection.rb', line 2441
def identifier
data['identifier']
end
|
#quantity ⇒ Object
2445
2446
2447
|
# File 'lib/carddb/collection.rb', line 2445
def quantity
data['quantity']
end
|
#record ⇒ Object
2465
2466
2467
|
# File 'lib/carddb/collection.rb', line 2465
def record
@record ||= data['record'] ? Record.new(data['record'], client: client) : nil
end
|
#record_id ⇒ Object
2437
2438
2439
|
# File 'lib/carddb/collection.rb', line 2437
def record_id
data['recordId']
end
|
#section ⇒ Object
2449
2450
2451
|
# File 'lib/carddb/collection.rb', line 2449
def section
data['section']
end
|
#sort_order ⇒ Object
2453
2454
2455
|
# File 'lib/carddb/collection.rb', line 2453
def sort_order
data['sortOrder']
end
|