Class: SNMP::Unsigned32

Inherits:
UnsignedInteger show all
Defined in:
lib/snmp/varbind.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from UnsignedInteger

#initialize

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_typeObject



304
305
306
# File 'lib/snmp/varbind.rb', line 304

def asn1_type
    "Unsigned32"
end

#encodeObject



308
309
310
# File 'lib/snmp/varbind.rb', line 308

def encode
    encode_tagged_integer(Unsigned32_TAG, @value)
end