Class: SNMP::Counter64
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Integer
#<=>, #coerce, #to_f, #to_i, #to_oid, #to_s
Constructor Details
#initialize(value) ⇒ Counter64
Returns a new instance of Counter64.
395
396
397
398
399
|
# File 'lib/snmp/varbind.rb', line 395
def initialize(value)
super(value)
raise ArgumentError, "Negative integer invalid: #{value}" if value < 0
raise ArgumentError, "Out of range: #{value}" if value > 18446744073709551615
end
|
Class Method Details
.decode(value_data) ⇒ Object
Instance Method Details
#asn1_type ⇒ Object
391
392
393
|
# File 'lib/snmp/varbind.rb', line 391
def asn1_type
"Counter64"
end
|