Class: SNMP::Gauge32

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



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_typeObject



290
291
292
# File 'lib/snmp/varbind.rb', line 290

def asn1_type
    "Gauge32"
end

#encodeObject



294
295
296
# File 'lib/snmp/varbind.rb', line 294

def encode
    encode_tagged_integer(Gauge32_TAG, @value)
end