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
2238
|
# File 'lib/carddb/collection.rb', line 2238
def dataset_id = data['datasetId']
|
#dataset_key ⇒ Object
2237
|
# File 'lib/carddb/collection.rb', line 2237
def dataset_key = data['datasetKey']
|
#display ⇒ Object
2244
|
# File 'lib/carddb/collection.rb', line 2244
def display = data['display'] || {}
|
#identifier ⇒ Object
2240
|
# File 'lib/carddb/collection.rb', line 2240
def identifier = data['identifier']
|
#line_number ⇒ Object
2235
|
# File 'lib/carddb/collection.rb', line 2235
def line_number = data['lineNumber']
|
#quantity ⇒ Object
2241
|
# File 'lib/carddb/collection.rb', line 2241
def quantity = data['quantity']
|
#raw ⇒ Object
2236
|
# File 'lib/carddb/collection.rb', line 2236
def raw = data['raw']
|
#record ⇒ Object
2246
2247
2248
|
# File 'lib/carddb/collection.rb', line 2246
def record
@record ||= data['record'] ? Record.new(data['record'], client: client) : nil
end
|
#record_id ⇒ Object
2239
|
# File 'lib/carddb/collection.rb', line 2239
def record_id = data['recordId']
|
#section ⇒ Object
2242
|
# File 'lib/carddb/collection.rb', line 2242
def section = data['section']
|
#sort_order ⇒ Object
2243
|
# File 'lib/carddb/collection.rb', line 2243
def sort_order = data['sortOrder']
|