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
2500
2501
2502
|
# File 'lib/carddb/collection.rb', line 2500
def annotations
data['annotations'] || {}
end
|
#dataset_id ⇒ Object
2476
2477
2478
|
# File 'lib/carddb/collection.rb', line 2476
def dataset_id
data['datasetId']
end
|
#display ⇒ Object
2504
2505
2506
|
# File 'lib/carddb/collection.rb', line 2504
def display
data['display'] || {}
end
|
#id ⇒ Object
2472
2473
2474
|
# File 'lib/carddb/collection.rb', line 2472
def id
data['id']
end
|
#identifier ⇒ Object
2484
2485
2486
|
# File 'lib/carddb/collection.rb', line 2484
def identifier
data['identifier']
end
|
#quantity ⇒ Object
2488
2489
2490
|
# File 'lib/carddb/collection.rb', line 2488
def quantity
data['quantity']
end
|
#record ⇒ Object
2508
2509
2510
|
# File 'lib/carddb/collection.rb', line 2508
def record
@record ||= data['record'] ? Record.new(data['record'], client: client) : nil
end
|
#record_id ⇒ Object
2480
2481
2482
|
# File 'lib/carddb/collection.rb', line 2480
def record_id
data['recordId']
end
|
#section ⇒ Object
2492
2493
2494
|
# File 'lib/carddb/collection.rb', line 2492
def section
data['section']
end
|
#sort_order ⇒ Object
2496
2497
2498
|
# File 'lib/carddb/collection.rb', line 2496
def sort_order
data['sortOrder']
end
|