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_oid, #to_s

Constructor Details

This class inherits a constructor from SNMP::UnsignedInteger

Class Method Details

.decode(value_data) ⇒ Object



345
346
347
# File 'lib/snmp/varbind.rb', line 345

def self.decode(value_data)
    Unsigned32.new(decode_integer_value(value_data))
end

Instance Method Details

#asn1_typeObject



349
350
351
# File 'lib/snmp/varbind.rb', line 349

def asn1_type
    "Unsigned32"
end

#encodeObject



353
354
355
# File 'lib/snmp/varbind.rb', line 353

def encode
    encode_tagged_integer(Unsigned32_TAG, @value)
end