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
870
871
872
|
# File 'lib/carddb/collection.rb', line 870
def annotations
data['annotations'] || {}
end
|
#dataset_id ⇒ Object
846
847
848
|
# File 'lib/carddb/collection.rb', line 846
def dataset_id
data['datasetId']
end
|
#id ⇒ Object
842
843
844
|
# File 'lib/carddb/collection.rb', line 842
def id
data['id']
end
|
#identifier ⇒ Object
854
855
856
|
# File 'lib/carddb/collection.rb', line 854
def identifier
data['identifier']
end
|
#quantity ⇒ Object
858
859
860
|
# File 'lib/carddb/collection.rb', line 858
def quantity
data['quantity']
end
|
#record ⇒ Object
874
875
876
|
# File 'lib/carddb/collection.rb', line 874
def record
@record ||= data['record'] ? Record.new(data['record'], client: client) : nil
end
|
#record_id ⇒ Object
850
851
852
|
# File 'lib/carddb/collection.rb', line 850
def record_id
data['recordId']
end
|
#section ⇒ Object
862
863
864
|
# File 'lib/carddb/collection.rb', line 862
def section
data['section']
end
|
#sort_order ⇒ Object
866
867
868
|
# File 'lib/carddb/collection.rb', line 866
def sort_order
data['sortOrder']
end
|