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
2122
2123
2124
|
# File 'lib/carddb/collection.rb', line 2122
def annotations
data['annotations'] || {}
end
|
#dataset_id ⇒ Object
2098
2099
2100
|
# File 'lib/carddb/collection.rb', line 2098
def dataset_id
data['datasetId']
end
|
#display ⇒ Object
2126
2127
2128
|
# File 'lib/carddb/collection.rb', line 2126
def display
data['display'] || {}
end
|
#id ⇒ Object
2094
2095
2096
|
# File 'lib/carddb/collection.rb', line 2094
def id
data['id']
end
|
#identifier ⇒ Object
2106
2107
2108
|
# File 'lib/carddb/collection.rb', line 2106
def identifier
data['identifier']
end
|
#quantity ⇒ Object
2110
2111
2112
|
# File 'lib/carddb/collection.rb', line 2110
def quantity
data['quantity']
end
|
#record ⇒ Object
2130
2131
2132
|
# File 'lib/carddb/collection.rb', line 2130
def record
@record ||= data['record'] ? Record.new(data['record'], client: client) : nil
end
|
#record_id ⇒ Object
2102
2103
2104
|
# File 'lib/carddb/collection.rb', line 2102
def record_id
data['recordId']
end
|
#section ⇒ Object
2114
2115
2116
|
# File 'lib/carddb/collection.rb', line 2114
def section
data['section']
end
|
#sort_order ⇒ Object
2118
2119
2120
|
# File 'lib/carddb/collection.rb', line 2118
def sort_order
data['sortOrder']
end
|