Class: CardDB::ScanTemplatePreview
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
#message ⇒ Object
1173
|
# File 'lib/carddb/collection.rb', line 1173
def message = data['message']
|
#regions ⇒ Object
1179
1180
1181
|
# File 'lib/carddb/collection.rb', line 1179
def regions
@regions ||= (data['regions'] || []).map { |region| ScanTemplateRegionPreview.new(region, client: client) }
end
|
#warnings ⇒ Object
1175
1176
1177
|
# File 'lib/carddb/collection.rb', line 1175
def warnings
@warnings ||= (data['warnings'] || []).map { |warning| ScanTemplateWarning.new(warning, client: client) }
end
|