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
1072
1073
1074
|
# File 'lib/carddb/collection.rb', line 1072
def annotations
data['annotations'] || {}
end
|
#dataset_id ⇒ Object
1048
1049
1050
|
# File 'lib/carddb/collection.rb', line 1048
def dataset_id
data['datasetId']
end
|
#id ⇒ Object
1044
1045
1046
|
# File 'lib/carddb/collection.rb', line 1044
def id
data['id']
end
|
#identifier ⇒ Object
1056
1057
1058
|
# File 'lib/carddb/collection.rb', line 1056
def identifier
data['identifier']
end
|
#quantity ⇒ Object
1060
1061
1062
|
# File 'lib/carddb/collection.rb', line 1060
def quantity
data['quantity']
end
|
#record ⇒ Object
1076
1077
1078
|
# File 'lib/carddb/collection.rb', line 1076
def record
@record ||= data['record'] ? Record.new(data['record'], client: client) : nil
end
|
#record_id ⇒ Object
1052
1053
1054
|
# File 'lib/carddb/collection.rb', line 1052
def record_id
data['recordId']
end
|
#section ⇒ Object
1064
1065
1066
|
# File 'lib/carddb/collection.rb', line 1064
def section
data['section']
end
|
#sort_order ⇒ Object
1068
1069
1070
|
# File 'lib/carddb/collection.rb', line 1068
def sort_order
data['sortOrder']
end
|