Class: Inspec::Resources::PortsInfo
- Inherits:
-
Object
- Object
- Inspec::Resources::PortsInfo
- Defined in:
- lib/resources/port.rb
Overview
implements an info method and returns all ip adresses and protocols for each port [
port: 22,
address: '0.0.0.0'
protocol: 'tcp'
,
port: 22,
address: '::'
protocol: 'tcp6'
]
Direct Known Subclasses
Instance Attribute Summary collapse
-
#inspec ⇒ Object
readonly
Returns the value of attribute inspec.
Instance Method Summary collapse
-
#initialize(inspec) ⇒ PortsInfo
constructor
A new instance of PortsInfo.
Constructor Details
#initialize(inspec) ⇒ PortsInfo
Returns a new instance of PortsInfo.
109 110 111 |
# File 'lib/resources/port.rb', line 109 def initialize(inspec) @inspec = inspec end |
Instance Attribute Details
#inspec ⇒ Object (readonly)
Returns the value of attribute inspec.
108 109 110 |
# File 'lib/resources/port.rb', line 108 def inspec @inspec end |