Class: CardDB::DeckEntry
Overview
Wrapper for hosted DeckEntry objects
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
#annotations ⇒ Object
2396
2397
2398
|
# File 'lib/carddb/collection.rb', line 2396
def annotations
data['annotations'] || {}
end
|
#dataset_id ⇒ Object
2372
2373
2374
|
# File 'lib/carddb/collection.rb', line 2372
def dataset_id
data['datasetId']
end
|
#display ⇒ Object
2400
2401
2402
|
# File 'lib/carddb/collection.rb', line 2400
def display
data['display'] || {}
end
|
#id ⇒ Object
2368
2369
2370
|
# File 'lib/carddb/collection.rb', line 2368
def id
data['id']
end
|
#identifier ⇒ Object
2380
2381
2382
|
# File 'lib/carddb/collection.rb', line 2380
def identifier
data['identifier']
end
|
#quantity ⇒ Object
2384
2385
2386
|
# File 'lib/carddb/collection.rb', line 2384
def quantity
data['quantity']
end
|
#record ⇒ Object
2404
2405
2406
|
# File 'lib/carddb/collection.rb', line 2404
def record
@record ||= data['record'] ? Record.new(data['record'], client: client) : nil
end
|
#record_id ⇒ Object
2376
2377
2378
|
# File 'lib/carddb/collection.rb', line 2376
def record_id
data['recordId']
end
|
#section ⇒ Object
2388
2389
2390
|
# File 'lib/carddb/collection.rb', line 2388
def section
data['section']
end
|
#sort_order ⇒ Object
2392
2393
2394
|
# File 'lib/carddb/collection.rb', line 2392
def sort_order
data['sortOrder']
end
|