Class: ScanTemplate::Discovery::Performance

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

Defined Under Namespace

Classes: PacketRate, Parallelism, ScanDelay, Timeout

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 = {}) ⇒ 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_rateObject

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

#parallelismObject

Returns the value of attribute parallelism.



56
57
58
# File 'lib/domain/scan_template/model.rb', line 56

def parallelism
  @parallelism
end

#retry_limitObject

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_delayObject

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

#timeoutObject

Returns the value of attribute timeout.



56
57
58
# File 'lib/domain/scan_template/model.rb', line 56

def timeout
  @timeout
end