Class: Ronin::Recon::Values::Mailserver
- Inherits:
-
Host
- Object
- Ronin::Recon::Value
- Host
- Ronin::Recon::Values::Mailserver
- Defined in:
- lib/ronin/recon/values/mailserver.rb
Overview
Represents a discovered mailserver.
Instance Attribute Summary
Attributes inherited from Host
Class Method Summary collapse
-
.value_type ⇒ :mailserver
private
Returns the type or kind of recon value.
Instance Method Summary collapse
-
#as_json ⇒ Hash{Symbol => Object}
Coerces the mailserver value into JSON.
Methods inherited from Host
#===, #eql?, #hash, #initialize, #to_s
Methods inherited from Ronin::Recon::Value
#==, parse, #to_csv, #to_json, #to_s
Constructor Details
This class inherits a constructor from Ronin::Recon::Values::Host
Class Method Details
.value_type ⇒ :mailserver
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.
Note:
This is used internally to map a recon value class to a printable type.
Returns the type or kind of recon value.
54 55 56 |
# File 'lib/ronin/recon/values/mailserver.rb', line 54 def self.value_type :mailserver end |
Instance Method Details
#as_json ⇒ Hash{Symbol => Object}
Coerces the mailserver value into JSON.
39 40 41 |
# File 'lib/ronin/recon/values/mailserver.rb', line 39 def as_json {type: :mailserver, name: @name} end |