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
1941
|
# File 'lib/carddb/collection.rb', line 1941
def dataset_id = data['datasetId']
|
#dataset_key ⇒ Object
1940
|
# File 'lib/carddb/collection.rb', line 1940
def dataset_key = data['datasetKey']
|
#display ⇒ Object
1947
|
# File 'lib/carddb/collection.rb', line 1947
def display = data['display'] || {}
|
#identifier ⇒ Object
1943
|
# File 'lib/carddb/collection.rb', line 1943
def identifier = data['identifier']
|
#line_number ⇒ Object
1938
|
# File 'lib/carddb/collection.rb', line 1938
def line_number = data['lineNumber']
|
#quantity ⇒ Object
1944
|
# File 'lib/carddb/collection.rb', line 1944
def quantity = data['quantity']
|
#raw ⇒ Object
1939
|
# File 'lib/carddb/collection.rb', line 1939
def raw = data['raw']
|
#record ⇒ Object
1949
1950
1951
|
# File 'lib/carddb/collection.rb', line 1949
def record
@record ||= data['record'] ? Record.new(data['record'], client: client) : nil
end
|
#record_id ⇒ Object
1942
|
# File 'lib/carddb/collection.rb', line 1942
def record_id = data['recordId']
|
#section ⇒ Object
1945
|
# File 'lib/carddb/collection.rb', line 1945
def section = data['section']
|
#sort_order ⇒ Object
1946
|
# File 'lib/carddb/collection.rb', line 1946
def sort_order = data['sortOrder']
|