Class: ScanTemplate::Discovery::Performance
- Inherits:
-
Domain::Model
- Object
- Domain::Model
- ScanTemplate::Discovery::Performance
- Defined in:
- lib/domain/scan_template/model.rb
Defined Under Namespace
Classes: PacketRate, Parallelism, ScanDelay, Timeout
Instance Attribute Summary collapse
-
#packet_rate ⇒ Object
Returns the value of attribute packet_rate.
-
#parallelism ⇒ Object
Returns the value of attribute parallelism.
-
#retry_limit ⇒ Object
Returns the value of attribute retry_limit.
-
#scan_delay ⇒ Object
Returns the value of attribute scan_delay.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Performance
constructor
A new instance of Performance.
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 = {}) ⇒ Performance
Returns a new instance of Performance.
58 59 60 61 62 63 64 |
# File 'lib/domain/scan_template/model.rb', line 58 def initialize(attributes = {}) @packet_rate = PacketRate.new(attributes[:packet_rate]) if attributes[:packet_rate] @parallelism = Parallelism.new(attributes[:parallelism]) if attributes[:parallelism] @scan_delay = ScanDelay.new(attributes[:scan_delay]) if attributes[:scan_delay] @timeout = Timeout.new(attributes[:timeout]) if attributes[:timeout] super(attributes) end |
Instance Attribute Details
#packet_rate ⇒ Object
Returns the value of attribute packet_rate.
56 57 58 |
# File 'lib/domain/scan_template/model.rb', line 56 def packet_rate @packet_rate end |
#parallelism ⇒ Object
Returns the value of attribute parallelism.
56 57 58 |
# File 'lib/domain/scan_template/model.rb', line 56 def parallelism @parallelism end |
#retry_limit ⇒ Object
Returns the value of attribute retry_limit.
56 57 58 |
# File 'lib/domain/scan_template/model.rb', line 56 def retry_limit @retry_limit end |
#scan_delay ⇒ Object
Returns the value of attribute scan_delay.
56 57 58 |
# File 'lib/domain/scan_template/model.rb', line 56 def scan_delay @scan_delay end |
#timeout ⇒ Object
Returns the value of attribute timeout.
56 57 58 |
# File 'lib/domain/scan_template/model.rb', line 56 def timeout @timeout end |