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
1236
|
# File 'lib/carddb/collection.rb', line 1236
def message = data['message']
|
#regions ⇒ Object
1242
1243
1244
|
# File 'lib/carddb/collection.rb', line 1242
def regions
@regions ||= (data['regions'] || []).map { |region| ScanTemplateRegionPreview.new(region, client: client) }
end
|
#warnings ⇒ Object
1238
1239
1240
|
# File 'lib/carddb/collection.rb', line 1238
def warnings
@warnings ||= (data['warnings'] || []).map { |warning| ScanTemplateWarning.new(warning, client: client) }
end
|