Class: SNMP::Gauge32

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

Instance Method Summary collapse

Methods inherited from UnsignedInteger

decode, #initialize

Methods inherited from Integer

#<=>, #coerce, decode, #initialize, #to_f, #to_i, #to_oid, #to_s

Constructor Details

This class inherits a constructor from SNMP::UnsignedInteger

Instance Method Details

#asn1_typeObject



373
374
375
# File 'lib/snmp/varbind.rb', line 373

def asn1_type
  "Gauge32"
end

#encodeObject



377
378
379
# File 'lib/snmp/varbind.rb', line 377

def encode
  encode_tagged_integer(Gauge32_TAG, @value)
end