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
2342
|
# File 'lib/carddb/collection.rb', line 2342
def dataset_id = data['datasetId']
|
#dataset_key ⇒ Object
2341
|
# File 'lib/carddb/collection.rb', line 2341
def dataset_key = data['datasetKey']
|
#display ⇒ Object
2348
|
# File 'lib/carddb/collection.rb', line 2348
def display = data['display'] || {}
|
#identifier ⇒ Object
2344
|
# File 'lib/carddb/collection.rb', line 2344
def identifier = data['identifier']
|
#line_number ⇒ Object
2339
|
# File 'lib/carddb/collection.rb', line 2339
def line_number = data['lineNumber']
|
#quantity ⇒ Object
2345
|
# File 'lib/carddb/collection.rb', line 2345
def quantity = data['quantity']
|
#raw ⇒ Object
2340
|
# File 'lib/carddb/collection.rb', line 2340
def raw = data['raw']
|
#record ⇒ Object
2350
2351
2352
|
# File 'lib/carddb/collection.rb', line 2350
def record
@record ||= data['record'] ? Record.new(data['record'], client: client) : nil
end
|
#record_id ⇒ Object
2343
|
# File 'lib/carddb/collection.rb', line 2343
def record_id = data['recordId']
|
#section ⇒ Object
2346
|
# File 'lib/carddb/collection.rb', line 2346
def section = data['section']
|
#sort_order ⇒ Object
2347
|
# File 'lib/carddb/collection.rb', line 2347
def sort_order = data['sortOrder']
|