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
2138
|
# File 'lib/carddb/collection.rb', line 2138
def dataset_id = data['datasetId']
|
#dataset_key ⇒ Object
2137
|
# File 'lib/carddb/collection.rb', line 2137
def dataset_key = data['datasetKey']
|
#display ⇒ Object
2144
|
# File 'lib/carddb/collection.rb', line 2144
def display = data['display'] || {}
|
#identifier ⇒ Object
2140
|
# File 'lib/carddb/collection.rb', line 2140
def identifier = data['identifier']
|
#line_number ⇒ Object
2135
|
# File 'lib/carddb/collection.rb', line 2135
def line_number = data['lineNumber']
|
#quantity ⇒ Object
2141
|
# File 'lib/carddb/collection.rb', line 2141
def quantity = data['quantity']
|
#raw ⇒ Object
2136
|
# File 'lib/carddb/collection.rb', line 2136
def raw = data['raw']
|
#record ⇒ Object
2146
2147
2148
|
# File 'lib/carddb/collection.rb', line 2146
def record
@record ||= data['record'] ? Record.new(data['record'], client: client) : nil
end
|
#record_id ⇒ Object
2139
|
# File 'lib/carddb/collection.rb', line 2139
def record_id = data['recordId']
|
#section ⇒ Object
2142
|
# File 'lib/carddb/collection.rb', line 2142
def section = data['section']
|
#sort_order ⇒ Object
2143
|
# File 'lib/carddb/collection.rb', line 2143
def sort_order = data['sortOrder']
|