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
1161 1162 1163 |
# File 'lib/carddb/collection.rb', line 1161 def template @template ||= data['template'] ? ScanTemplate.new(data['template'], client: client) : nil end |
#warnings ⇒ Object
1165 1166 1167 |
# File 'lib/carddb/collection.rb', line 1165 def warnings @warnings ||= (data['warnings'] || []).map { |warning| ScanTemplateWarning.new(warning, client: client) } end |