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
1964
|
# File 'lib/carddb/collection.rb', line 1964
def dataset_id = data['datasetId']
|
#dataset_key ⇒ Object
1963
|
# File 'lib/carddb/collection.rb', line 1963
def dataset_key = data['datasetKey']
|
#display ⇒ Object
1970
|
# File 'lib/carddb/collection.rb', line 1970
def display = data['display'] || {}
|
#identifier ⇒ Object
1966
|
# File 'lib/carddb/collection.rb', line 1966
def identifier = data['identifier']
|
#line_number ⇒ Object
1961
|
# File 'lib/carddb/collection.rb', line 1961
def line_number = data['lineNumber']
|
#quantity ⇒ Object
1967
|
# File 'lib/carddb/collection.rb', line 1967
def quantity = data['quantity']
|
#raw ⇒ Object
1962
|
# File 'lib/carddb/collection.rb', line 1962
def raw = data['raw']
|
#record ⇒ Object
1972
1973
1974
|
# File 'lib/carddb/collection.rb', line 1972
def record
@record ||= data['record'] ? Record.new(data['record'], client: client) : nil
end
|
#record_id ⇒ Object
1965
|
# File 'lib/carddb/collection.rb', line 1965
def record_id = data['recordId']
|
#section ⇒ Object
1968
|
# File 'lib/carddb/collection.rb', line 1968
def section = data['section']
|
#sort_order ⇒ Object
1969
|
# File 'lib/carddb/collection.rb', line 1969
def sort_order = data['sortOrder']
|