Class: ScanTemplate::Checks
- Inherits:
-
Domain::Model
- Object
- Domain::Model
- ScanTemplate::Checks
- Defined in:
- lib/domain/scan_template/model.rb
Defined Under Namespace
Classes: Category
Instance Attribute Summary collapse
-
#categories ⇒ Object
Returns the value of attribute categories.
-
#correlate ⇒ Object
Returns the value of attribute correlate.
-
#individual ⇒ Object
Returns the value of attribute individual.
-
#potential ⇒ Object
Returns the value of attribute potential.
-
#types ⇒ Object
Returns the value of attribute types.
-
#unsafe ⇒ Object
Returns the value of attribute unsafe.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Checks
constructor
A new instance of Checks.
Methods inherited from Domain::Model
columns, from_csv, from_json, headers, primary_key, table_name, #to_csv, #to_hash, #to_s, view
Constructor Details
#initialize(attributes = {}) ⇒ Checks
Returns a new instance of Checks.
22 23 24 25 26 27 |
# File 'lib/domain/scan_template/model.rb', line 22 def initialize(attributes = {}) @categories = Category.new(attributes[:categories]) if attributes[:categories] @individual = Category.new(attributes[:individual]) if attributes[:individual] @types = Category.new(attributes[:types]) if attributes[:types] super(attributes) end |
Instance Attribute Details
#categories ⇒ Object
Returns the value of attribute categories.
20 21 22 |
# File 'lib/domain/scan_template/model.rb', line 20 def categories @categories end |
#correlate ⇒ Object
Returns the value of attribute correlate.
20 21 22 |
# File 'lib/domain/scan_template/model.rb', line 20 def correlate @correlate end |
#individual ⇒ Object
Returns the value of attribute individual.
20 21 22 |
# File 'lib/domain/scan_template/model.rb', line 20 def individual @individual end |
#potential ⇒ Object
Returns the value of attribute potential.
20 21 22 |
# File 'lib/domain/scan_template/model.rb', line 20 def potential @potential end |
#types ⇒ Object
Returns the value of attribute types.
20 21 22 |
# File 'lib/domain/scan_template/model.rb', line 20 def types @types end |
#unsafe ⇒ Object
Returns the value of attribute unsafe.
20 21 22 |
# File 'lib/domain/scan_template/model.rb', line 20 def unsafe @unsafe end |