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
1186
|
# File 'lib/carddb/collection.rb', line 1186
def message = data['message']
|
#regions ⇒ Object
1192
1193
1194
|
# File 'lib/carddb/collection.rb', line 1192
def regions
@regions ||= (data['regions'] || []).map { |region| ScanTemplateRegionPreview.new(region, client: client) }
end
|
#warnings ⇒ Object
1188
1189
1190
|
# File 'lib/carddb/collection.rb', line 1188
def warnings
@warnings ||= (data['warnings'] || []).map { |warning| ScanTemplateWarning.new(warning, client: client) }
end
|