Class: CardDB::DeckEntryValuation
Overview
Wrapper for one deck entry's contribution to a valuation
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
#dataset_id ⇒ Object
2214
|
# File 'lib/carddb/collection.rb', line 2214
def dataset_id = data['datasetId']
|
#entry_id ⇒ Object
2213
|
# File 'lib/carddb/collection.rb', line 2213
def entry_id = data['entryId']
|
#identifier ⇒ Object
2216
|
# File 'lib/carddb/collection.rb', line 2216
def identifier = data['identifier']
|
#missing_reason ⇒ Object
2219
|
# File 'lib/carddb/collection.rb', line 2219
def missing_reason = data['missingReason']
|
#priced_subtotal ⇒ Object
2225
2226
2227
|
# File 'lib/carddb/collection.rb', line 2225
def priced_subtotal
@priced_subtotal ||= data['pricedSubtotal'] ? Money.new(data['pricedSubtotal'], client: client) : nil
end
|
#quantity ⇒ Object
2218
|
# File 'lib/carddb/collection.rb', line 2218
def quantity = data['quantity']
|
#record_id ⇒ Object
2215
|
# File 'lib/carddb/collection.rb', line 2215
def record_id = data['recordId']
|
#section ⇒ Object
2217
|
# File 'lib/carddb/collection.rb', line 2217
def section = data['section']
|
#unit_price ⇒ Object
2221
2222
2223
|
# File 'lib/carddb/collection.rb', line 2221
def unit_price
@unit_price ||= data['unitPrice'] ? Money.new(data['unitPrice'], client: client) : nil
end
|