Class: SNMP::Unsigned32
- Inherits:
-
UnsignedInteger
- Object
- Integer
- UnsignedInteger
- SNMP::Unsigned32
- 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
300 301 302 |
# File 'lib/snmp/varbind.rb', line 300 def self.decode(value_data) Unsigned32.new(decode_integer_value(value_data)) end |
Instance Method Details
#asn1_type ⇒ Object
304 305 306 |
# File 'lib/snmp/varbind.rb', line 304 def asn1_type "Unsigned32" end |
#encode ⇒ Object
308 309 310 |
# File 'lib/snmp/varbind.rb', line 308 def encode encode_tagged_integer(Unsigned32_TAG, @value) end |