Class: SNMP::NoSuchObject

Inherits:
Object
  • Object
show all
Extended by:
BER::Encode
Defined in:
lib/snmp/varbind.rb

Class Method Summary collapse

Methods included from BER::Encode

encode_exception, encode_integer, encode_length, encode_null, encode_object_id, encode_octet_string, encode_sequence, encode_tagged_integer, encode_tlv, integer_to_octets

Class Method Details

.asn1_typeObject



502
503
504
# File 'lib/snmp/varbind.rb', line 502

def asn1_type
  'noSuchObject'
end

.decode(value_data) ⇒ Object



494
495
496
# File 'lib/snmp/varbind.rb', line 494

def decode(value_data)
  NoSuchObject
end

.encodeObject



498
499
500
# File 'lib/snmp/varbind.rb', line 498

def encode
  encode_exception(BER::NoSuchObject_TAG)
end

.to_sObject



506
507
508
# File 'lib/snmp/varbind.rb', line 506

def to_s
  asn1_type
end