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
1082
1083
1084
|
# File 'lib/carddb/collection.rb', line 1082
def annotations
data['annotations'] || {}
end
|
#dataset_id ⇒ Object
1058
1059
1060
|
# File 'lib/carddb/collection.rb', line 1058
def dataset_id
data['datasetId']
end
|
#id ⇒ Object
1054
1055
1056
|
# File 'lib/carddb/collection.rb', line 1054
def id
data['id']
end
|
#identifier ⇒ Object
1066
1067
1068
|
# File 'lib/carddb/collection.rb', line 1066
def identifier
data['identifier']
end
|
#quantity ⇒ Object
1070
1071
1072
|
# File 'lib/carddb/collection.rb', line 1070
def quantity
data['quantity']
end
|
#record ⇒ Object
1086
1087
1088
|
# File 'lib/carddb/collection.rb', line 1086
def record
@record ||= data['record'] ? Record.new(data['record'], client: client) : nil
end
|
#record_id ⇒ Object
1062
1063
1064
|
# File 'lib/carddb/collection.rb', line 1062
def record_id
data['recordId']
end
|
#section ⇒ Object
1074
1075
1076
|
# File 'lib/carddb/collection.rb', line 1074
def section
data['section']
end
|
#sort_order ⇒ Object
1078
1079
1080
|
# File 'lib/carddb/collection.rb', line 1078
def sort_order
data['sortOrder']
end
|