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
2463
2464
2465
|
# File 'lib/carddb/collection.rb', line 2463
def annotations
data['annotations'] || {}
end
|
#dataset_id ⇒ Object
2439
2440
2441
|
# File 'lib/carddb/collection.rb', line 2439
def dataset_id
data['datasetId']
end
|
#display ⇒ Object
2467
2468
2469
|
# File 'lib/carddb/collection.rb', line 2467
def display
data['display'] || {}
end
|
#id ⇒ Object
2435
2436
2437
|
# File 'lib/carddb/collection.rb', line 2435
def id
data['id']
end
|
#identifier ⇒ Object
2447
2448
2449
|
# File 'lib/carddb/collection.rb', line 2447
def identifier
data['identifier']
end
|
#quantity ⇒ Object
2451
2452
2453
|
# File 'lib/carddb/collection.rb', line 2451
def quantity
data['quantity']
end
|
#record ⇒ Object
2471
2472
2473
|
# File 'lib/carddb/collection.rb', line 2471
def record
@record ||= data['record'] ? Record.new(data['record'], client: client) : nil
end
|
#record_id ⇒ Object
2443
2444
2445
|
# File 'lib/carddb/collection.rb', line 2443
def record_id
data['recordId']
end
|
#section ⇒ Object
2455
2456
2457
|
# File 'lib/carddb/collection.rb', line 2455
def section
data['section']
end
|
#sort_order ⇒ Object
2459
2460
2461
|
# File 'lib/carddb/collection.rb', line 2459
def sort_order
data['sortOrder']
end
|