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
2225
|
# File 'lib/carddb/collection.rb', line 2225
def dataset_id = data['datasetId']
|
#dataset_key ⇒ Object
2224
|
# File 'lib/carddb/collection.rb', line 2224
def dataset_key = data['datasetKey']
|
#display ⇒ Object
2231
|
# File 'lib/carddb/collection.rb', line 2231
def display = data['display'] || {}
|
#identifier ⇒ Object
2227
|
# File 'lib/carddb/collection.rb', line 2227
def identifier = data['identifier']
|
#line_number ⇒ Object
2222
|
# File 'lib/carddb/collection.rb', line 2222
def line_number = data['lineNumber']
|
#quantity ⇒ Object
2228
|
# File 'lib/carddb/collection.rb', line 2228
def quantity = data['quantity']
|
#raw ⇒ Object
2223
|
# File 'lib/carddb/collection.rb', line 2223
def raw = data['raw']
|
#record ⇒ Object
2233
2234
2235
|
# File 'lib/carddb/collection.rb', line 2233
def record
@record ||= data['record'] ? Record.new(data['record'], client: client) : nil
end
|
#record_id ⇒ Object
2226
|
# File 'lib/carddb/collection.rb', line 2226
def record_id = data['recordId']
|
#section ⇒ Object
2229
|
# File 'lib/carddb/collection.rb', line 2229
def section = data['section']
|
#sort_order ⇒ Object
2230
|
# File 'lib/carddb/collection.rb', line 2230
def sort_order = data['sortOrder']
|