Class: ScanTemplate::Checks

Inherits:
Domain::Model show all
Defined in:
lib/domain/scan_template/model.rb

Defined Under Namespace

Classes: Category

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#categoriesObject

Returns the value of attribute categories.



20
21
22
# File 'lib/domain/scan_template/model.rb', line 20

def categories
  @categories
end

#correlateObject

Returns the value of attribute correlate.



20
21
22
# File 'lib/domain/scan_template/model.rb', line 20

def correlate
  @correlate
end

#individualObject

Returns the value of attribute individual.



20
21
22
# File 'lib/domain/scan_template/model.rb', line 20

def individual
  @individual
end

#potentialObject

Returns the value of attribute potential.



20
21
22
# File 'lib/domain/scan_template/model.rb', line 20

def potential
  @potential
end

#typesObject

Returns the value of attribute types.



20
21
22
# File 'lib/domain/scan_template/model.rb', line 20

def types
  @types
end

#unsafeObject

Returns the value of attribute unsafe.



20
21
22
# File 'lib/domain/scan_template/model.rb', line 20

def unsafe
  @unsafe
end