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
1582
1583
1584
|
# File 'lib/carddb/collection.rb', line 1582
def annotations
data['annotations'] || {}
end
|
#dataset_id ⇒ Object
1558
1559
1560
|
# File 'lib/carddb/collection.rb', line 1558
def dataset_id
data['datasetId']
end
|
#display ⇒ Object
1586
1587
1588
|
# File 'lib/carddb/collection.rb', line 1586
def display
data['display'] || {}
end
|
#id ⇒ Object
1554
1555
1556
|
# File 'lib/carddb/collection.rb', line 1554
def id
data['id']
end
|
#identifier ⇒ Object
1566
1567
1568
|
# File 'lib/carddb/collection.rb', line 1566
def identifier
data['identifier']
end
|
#quantity ⇒ Object
1570
1571
1572
|
# File 'lib/carddb/collection.rb', line 1570
def quantity
data['quantity']
end
|
#record ⇒ Object
1590
1591
1592
|
# File 'lib/carddb/collection.rb', line 1590
def record
@record ||= data['record'] ? Record.new(data['record'], client: client) : nil
end
|
#record_id ⇒ Object
1562
1563
1564
|
# File 'lib/carddb/collection.rb', line 1562
def record_id
data['recordId']
end
|
#section ⇒ Object
1574
1575
1576
|
# File 'lib/carddb/collection.rb', line 1574
def section
data['section']
end
|
#sort_order ⇒ Object
1578
1579
1580
|
# File 'lib/carddb/collection.rb', line 1578
def sort_order
data['sortOrder']
end
|