Class: ScanEnginePool
- Inherits:
-
Domain::Model
- Object
- Domain::Model
- ScanEnginePool
- Defined in:
- lib/domain/scan_engine_pool/model.rb
Instance Attribute Summary collapse
-
#engines ⇒ Object
Returns the value of attribute engines.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#sites ⇒ Object
Returns the value of attribute sites.
Instance Method Summary collapse
Methods inherited from Domain::Model
columns, from_csv, from_json, headers, #initialize, primary_key, table_name, #to_csv, #to_hash, #to_s, view
Constructor Details
This class inherits a constructor from Domain::Model
Instance Attribute Details
#engines ⇒ Object
Returns the value of attribute engines.
6 7 8 |
# File 'lib/domain/scan_engine_pool/model.rb', line 6 def engines @engines end |
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/domain/scan_engine_pool/model.rb', line 6 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/domain/scan_engine_pool/model.rb', line 6 def name @name end |
#sites ⇒ Object
Returns the value of attribute sites.
6 7 8 |
# File 'lib/domain/scan_engine_pool/model.rb', line 6 def sites @sites end |
Instance Method Details
#to_json(*_options) ⇒ Object
11 12 13 |
# File 'lib/domain/scan_engine_pool/model.rb', line 11 def to_json(*) { id:, name:, engines:, sites: }.to_json end |