Class: Net::SNMP::Counter32
- Inherits:
-
Object
- Object
- Net::SNMP::Counter32
- Defined in:
- lib/net/snmp.rb
Overview
SNMP 32-bit counter. Defined in RFC1155 (Structure of Mangement Information), section 6. A 32-bit counter is an ASN.1 application [1] implicit unsigned integer with a range from 0 to 2^^32 - 1.
Instance Method Summary collapse
-
#initialize(value) ⇒ Counter32
constructor
A new instance of Counter32.
- #to_ber ⇒ Object
Constructor Details
#initialize(value) ⇒ Counter32
Returns a new instance of Counter32.
62 63 64 |
# File 'lib/net/snmp.rb', line 62 def initialize value @value = value end |
Instance Method Details
#to_ber ⇒ Object
65 66 67 |
# File 'lib/net/snmp.rb', line 65 def to_ber @value.to_ber_application(1) end |