Class: Rex::Parser::ParsedResult

Inherits:
Object
  • Object
show all
Defined in:
lib/rex/parser/parsed_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeParsedResult

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_idsObject

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