Class: Apscanner::SnmpParser

Inherits:
Object
  • Object
show all
Defined in:
lib/apscanner/entities/snmp_parser.rb

Instance Method Summary collapse

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

#runObject



9
10
11
# File 'lib/apscanner/entities/snmp_parser.rb', line 9

def run
  send("parse_#{@type}")
end