Class: CardDB::DeckImportEntry
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
2411
|
# File 'lib/carddb/collection.rb', line 2411
def dataset_id = data['datasetId']
|
#dataset_key ⇒ Object
2410
|
# File 'lib/carddb/collection.rb', line 2410
def dataset_key = data['datasetKey']
|
#display ⇒ Object
2417
|
# File 'lib/carddb/collection.rb', line 2417
def display = data['display'] || {}
|
#identifier ⇒ Object
2413
|
# File 'lib/carddb/collection.rb', line 2413
def identifier = data['identifier']
|
#line_number ⇒ Object
2408
|
# File 'lib/carddb/collection.rb', line 2408
def line_number = data['lineNumber']
|
#quantity ⇒ Object
2414
|
# File 'lib/carddb/collection.rb', line 2414
def quantity = data['quantity']
|
#raw ⇒ Object
2409
|
# File 'lib/carddb/collection.rb', line 2409
def raw = data['raw']
|
#record ⇒ Object
2419
2420
2421
|
# File 'lib/carddb/collection.rb', line 2419
def record
@record ||= data['record'] ? Record.new(data['record'], client: client) : nil
end
|
#record_id ⇒ Object
2412
|
# File 'lib/carddb/collection.rb', line 2412
def record_id = data['recordId']
|
#section ⇒ Object
2415
|
# File 'lib/carddb/collection.rb', line 2415
def section = data['section']
|
#sort_order ⇒ Object
2416
|
# File 'lib/carddb/collection.rb', line 2416
def sort_order = data['sortOrder']
|