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
2569
2570
2571
|
# File 'lib/carddb/collection.rb', line 2569
def annotations
data['annotations'] || {}
end
|
#dataset_id ⇒ Object
2545
2546
2547
|
# File 'lib/carddb/collection.rb', line 2545
def dataset_id
data['datasetId']
end
|
#display ⇒ Object
2573
2574
2575
|
# File 'lib/carddb/collection.rb', line 2573
def display
data['display'] || {}
end
|
#id ⇒ Object
2541
2542
2543
|
# File 'lib/carddb/collection.rb', line 2541
def id
data['id']
end
|
#identifier ⇒ Object
2553
2554
2555
|
# File 'lib/carddb/collection.rb', line 2553
def identifier
data['identifier']
end
|
#quantity ⇒ Object
2557
2558
2559
|
# File 'lib/carddb/collection.rb', line 2557
def quantity
data['quantity']
end
|
#record ⇒ Object
2577
2578
2579
|
# File 'lib/carddb/collection.rb', line 2577
def record
@record ||= data['record'] ? Record.new(data['record'], client: client) : nil
end
|
#record_id ⇒ Object
2549
2550
2551
|
# File 'lib/carddb/collection.rb', line 2549
def record_id
data['recordId']
end
|
#section ⇒ Object
2561
2562
2563
|
# File 'lib/carddb/collection.rb', line 2561
def section
data['section']
end
|
#sort_order ⇒ Object
2565
2566
2567
|
# File 'lib/carddb/collection.rb', line 2565
def sort_order
data['sortOrder']
end
|