Class: Rex::Parser::ParsedResult
- Inherits:
-
Object
- Object
- Rex::Parser::ParsedResult
- Defined in:
- lib/rex/parser/parsed_result.rb
Instance Attribute Summary collapse
-
#host_ids ⇒ Object
Returns the value of attribute host_ids.
Instance Method Summary collapse
-
#initialize ⇒ ParsedResult
constructor
A new instance of ParsedResult.
- #record_host(host) ⇒ Object
Constructor Details
#initialize ⇒ ParsedResult
Returns a new instance of ParsedResult.
5 6 7 |
# File 'lib/rex/parser/parsed_result.rb', line 5 def initialize @host_ids = [] end |
Instance Attribute Details
#host_ids ⇒ Object
Returns the value of attribute host_ids.
3 4 5 |
# File 'lib/rex/parser/parsed_result.rb', line 3 def host_ids @host_ids end |
Instance Method Details
#record_host(host) ⇒ Object
9 10 11 |
# File 'lib/rex/parser/parsed_result.rb', line 9 def record_host(host) @host_ids << host.id end |