Class: SNMP::Gauge32
- Inherits:
-
UnsignedInteger
- Object
- Integer
- UnsignedInteger
- SNMP::Gauge32
- Defined in:
- lib/snmp/varbind.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from UnsignedInteger
Methods inherited from Integer
#<=>, #coerce, #initialize, #to_f, #to_i, #to_s
Constructor Details
This class inherits a constructor from SNMP::UnsignedInteger
Class Method Details
.decode(value_data) ⇒ Object
286 287 288 |
# File 'lib/snmp/varbind.rb', line 286 def self.decode(value_data) Gauge32.new(decode_integer_value(value_data)) end |
Instance Method Details
#asn1_type ⇒ Object
290 291 292 |
# File 'lib/snmp/varbind.rb', line 290 def asn1_type "Gauge32" end |
#encode ⇒ Object
294 295 296 |
# File 'lib/snmp/varbind.rb', line 294 def encode encode_tagged_integer(Gauge32_TAG, @value) end |