Class: Masscan::Status
- Inherits:
-
Struct
- Object
- Struct
- Masscan::Status
- Defined in:
- lib/masscan/status.rb
Overview
Represents a port status record.
Instance Attribute Summary collapse
-
#ip ⇒ Object
Returns the value of attribute ip.
-
#mac ⇒ Object
Returns the value of attribute mac.
-
#port ⇒ Object
Returns the value of attribute port.
-
#protocol ⇒ Object
Returns the value of attribute protocol.
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#status ⇒ Object
Returns the value of attribute status.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
-
#ttl ⇒ Object
Returns the value of attribute ttl.
Instance Method Summary collapse
-
#initialize(status:, protocol:, port:, reason: nil, ttl: nil, ip:, timestamp:, mac: nil) ⇒ Status
constructor
private
Initializes the status record.
Constructor Details
#initialize(status:, protocol:, port:, reason: nil, ttl: nil, ip:, timestamp:, mac: nil) ⇒ Status
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initializes the status record.
38 39 40 |
# File 'lib/masscan/status.rb', line 38 def initialize(status: , protocol: , port: , reason: nil, ttl: nil, ip: , timestamp: , mac: nil) super(status,protocol,port,reason,ttl,ip,,mac) end |
Instance Attribute Details
#ip ⇒ Object
Returns the value of attribute ip
7 8 9 |
# File 'lib/masscan/status.rb', line 7 def ip @ip end |
#mac ⇒ Object
Returns the value of attribute mac
7 8 9 |
# File 'lib/masscan/status.rb', line 7 def mac @mac end |
#port ⇒ Object
Returns the value of attribute port
7 8 9 |
# File 'lib/masscan/status.rb', line 7 def port @port end |
#protocol ⇒ Object
Returns the value of attribute protocol
7 8 9 |
# File 'lib/masscan/status.rb', line 7 def protocol @protocol end |
#reason ⇒ Object
Returns the value of attribute reason
7 8 9 |
# File 'lib/masscan/status.rb', line 7 def reason @reason end |
#status ⇒ Object
Returns the value of attribute status
7 8 9 |
# File 'lib/masscan/status.rb', line 7 def status @status end |
#timestamp ⇒ Object
Returns the value of attribute timestamp
7 8 9 |
# File 'lib/masscan/status.rb', line 7 def @timestamp end |
#ttl ⇒ Object
Returns the value of attribute ttl
7 8 9 |
# File 'lib/masscan/status.rb', line 7 def ttl @ttl end |