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
1424
|
# File 'lib/carddb/collection.rb', line 1424
def dataset_id = data['datasetId']
|
#dataset_key ⇒ Object
1423
|
# File 'lib/carddb/collection.rb', line 1423
def dataset_key = data['datasetKey']
|
#display ⇒ Object
1430
|
# File 'lib/carddb/collection.rb', line 1430
def display = data['display'] || {}
|
#identifier ⇒ Object
1426
|
# File 'lib/carddb/collection.rb', line 1426
def identifier = data['identifier']
|
#line_number ⇒ Object
1421
|
# File 'lib/carddb/collection.rb', line 1421
def line_number = data['lineNumber']
|
#quantity ⇒ Object
1427
|
# File 'lib/carddb/collection.rb', line 1427
def quantity = data['quantity']
|
#raw ⇒ Object
1422
|
# File 'lib/carddb/collection.rb', line 1422
def raw = data['raw']
|
#record ⇒ Object
1432
1433
1434
|
# File 'lib/carddb/collection.rb', line 1432
def record
@record ||= data['record'] ? Record.new(data['record'], client: client) : nil
end
|
#record_id ⇒ Object
1425
|
# File 'lib/carddb/collection.rb', line 1425
def record_id = data['recordId']
|
#section ⇒ Object
1428
|
# File 'lib/carddb/collection.rb', line 1428
def section = data['section']
|
#sort_order ⇒ Object
1429
|
# File 'lib/carddb/collection.rb', line 1429
def sort_order = data['sortOrder']
|