Class: Apscanner::SnmpParser
- Inherits:
-
Object
- Object
- Apscanner::SnmpParser
- Defined in:
- lib/apscanner/entities/snmp_parser.rb
Instance Method Summary collapse
-
#initialize(response, type) ⇒ SnmpParser
constructor
A new instance of SnmpParser.
- #run ⇒ Object
Constructor Details
#initialize(response, type) ⇒ SnmpParser
Returns a new instance of SnmpParser.
3 4 5 6 7 |
# File 'lib/apscanner/entities/snmp_parser.rb', line 3 def initialize(response, type) @response = response @type = type @oids = SnmpManager::SNMP_OID[type] end |
Instance Method Details
#run ⇒ Object
9 10 11 |
# File 'lib/apscanner/entities/snmp_parser.rb', line 9 def run send("parse_#{@type}") end |