Class: ScanTemplate::Discovery::Service
- Inherits:
-
Domain::Model
- Object
- Domain::Model
- ScanTemplate::Discovery::Service
- Defined in:
- lib/domain/scan_template/model.rb
Defined Under Namespace
Classes: PortConfig
Instance Attribute Summary collapse
-
#service_name_file ⇒ Object
Returns the value of attribute service_name_file.
-
#tcp ⇒ Object
Returns the value of attribute tcp.
-
#udp ⇒ Object
Returns the value of attribute udp.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Service
constructor
A new instance of Service.
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 = {}) ⇒ Service
Returns a new instance of Service.
86 87 88 89 90 |
# File 'lib/domain/scan_template/model.rb', line 86 def initialize(attributes = {}) @tcp = PortConfig.new(attributes[:tcp]) if attributes[:tcp] @udp = PortConfig.new(attributes[:udp]) if attributes[:udp] super(attributes) end |
Instance Attribute Details
#service_name_file ⇒ Object
Returns the value of attribute service_name_file.
84 85 86 |
# File 'lib/domain/scan_template/model.rb', line 84 def service_name_file @service_name_file end |
#tcp ⇒ Object
Returns the value of attribute tcp.
84 85 86 |
# File 'lib/domain/scan_template/model.rb', line 84 def tcp @tcp end |
#udp ⇒ Object
Returns the value of attribute udp.
84 85 86 |
# File 'lib/domain/scan_template/model.rb', line 84 def udp @udp end |