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
2099
2100
2101
|
# File 'lib/carddb/collection.rb', line 2099
def annotations
data['annotations'] || {}
end
|
#dataset_id ⇒ Object
2075
2076
2077
|
# File 'lib/carddb/collection.rb', line 2075
def dataset_id
data['datasetId']
end
|
#display ⇒ Object
2103
2104
2105
|
# File 'lib/carddb/collection.rb', line 2103
def display
data['display'] || {}
end
|
#id ⇒ Object
2071
2072
2073
|
# File 'lib/carddb/collection.rb', line 2071
def id
data['id']
end
|
#identifier ⇒ Object
2083
2084
2085
|
# File 'lib/carddb/collection.rb', line 2083
def identifier
data['identifier']
end
|
#quantity ⇒ Object
2087
2088
2089
|
# File 'lib/carddb/collection.rb', line 2087
def quantity
data['quantity']
end
|
#record ⇒ Object
2107
2108
2109
|
# File 'lib/carddb/collection.rb', line 2107
def record
@record ||= data['record'] ? Record.new(data['record'], client: client) : nil
end
|
#record_id ⇒ Object
2079
2080
2081
|
# File 'lib/carddb/collection.rb', line 2079
def record_id
data['recordId']
end
|
#section ⇒ Object
2091
2092
2093
|
# File 'lib/carddb/collection.rb', line 2091
def section
data['section']
end
|
#sort_order ⇒ Object
2095
2096
2097
|
# File 'lib/carddb/collection.rb', line 2095
def sort_order
data['sortOrder']
end
|