Class: CardDB::ScanTemplateResolution
- Defined in:
- lib/carddb/collection.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
Methods inherited from Resource
#[], #initialize, #key?, #to_h, #to_json
Constructor Details
This class inherits a constructor from CardDB::Resource
Instance Method Details
#template ⇒ Object
1211 1212 1213 |
# File 'lib/carddb/collection.rb', line 1211 def template @template ||= data['template'] ? ScanTemplate.new(data['template'], client: client) : nil end |
#warnings ⇒ Object
1215 1216 1217 |
# File 'lib/carddb/collection.rb', line 1215 def warnings @warnings ||= (data['warnings'] || []).map { |warning| ScanTemplateWarning.new(warning, client: client) } end |