Class: SNMP::Open::Parser::ValueParser::Integer

Inherits:
SNMP::Open::Parser::ValueParser show all
Defined in:
lib/snmp/open/parser/value_parser.rb

Overview

parses integer-like objects

Constant Summary

Constants inherited from SNMP::Open::Parser::ValueParser

KNOWN_TOKENS, KNOWN_TYPES

Constants included from Constants

Constants::NOMOREVARIABLES_STR, Constants::NOSUCHINSTANCE_STR, Constants::NOSUCHOBJECT_STR

Instance Method Summary collapse

Methods inherited from SNMP::Open::Parser::ValueParser

find, #initialize

Constructor Details

This class inherits a constructor from SNMP::Open::Parser::ValueParser

Instance Method Details

#parse(tokens) ⇒ Object



44
45
46
# File 'lib/snmp/open/parser/value_parser.rb', line 44

def parse(tokens)
  @parse ||= [@type, Integer(tokens.next)]
end