Class: Net::SNMP::Gauge32

Inherits:
Object
  • Object
show all
Defined in:
lib/net/snmp.rb

Overview

SNMP 32-bit gauge. Defined in RFC1155 (Structure of Mangement Information), section 6. A 32-bit counter is an ASN.1 application [2] implicit unsigned integer. This is also indistinguishable from Unsigned32. (Need to alias them.)

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Gauge32

Returns a new instance of Gauge32.



46
47
48
# File 'lib/net/snmp.rb', line 46

def initialize value
		@value = value
end

Instance Method Details

#to_berObject



49
50
51
# File 'lib/net/snmp.rb', line 49

def to_ber
		@value.to_ber_application(2)
end