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
2296
2297
2298
|
# File 'lib/carddb/collection.rb', line 2296
def annotations
data['annotations'] || {}
end
|
#dataset_id ⇒ Object
2272
2273
2274
|
# File 'lib/carddb/collection.rb', line 2272
def dataset_id
data['datasetId']
end
|
#display ⇒ Object
2300
2301
2302
|
# File 'lib/carddb/collection.rb', line 2300
def display
data['display'] || {}
end
|
#id ⇒ Object
2268
2269
2270
|
# File 'lib/carddb/collection.rb', line 2268
def id
data['id']
end
|
#identifier ⇒ Object
2280
2281
2282
|
# File 'lib/carddb/collection.rb', line 2280
def identifier
data['identifier']
end
|
#quantity ⇒ Object
2284
2285
2286
|
# File 'lib/carddb/collection.rb', line 2284
def quantity
data['quantity']
end
|
#record ⇒ Object
2304
2305
2306
|
# File 'lib/carddb/collection.rb', line 2304
def record
@record ||= data['record'] ? Record.new(data['record'], client: client) : nil
end
|
#record_id ⇒ Object
2276
2277
2278
|
# File 'lib/carddb/collection.rb', line 2276
def record_id
data['recordId']
end
|
#section ⇒ Object
2288
2289
2290
|
# File 'lib/carddb/collection.rb', line 2288
def section
data['section']
end
|
#sort_order ⇒ Object
2292
2293
2294
|
# File 'lib/carddb/collection.rb', line 2292
def sort_order
data['sortOrder']
end
|