Class: SNMP::Opaque

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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from OctetString

#to_oid

Class Method Details

.decode(value_data) ⇒ Object



420
421
422
# File 'lib/snmp/varbind.rb', line 420

def self.decode(value_data)
  Opaque.new(value_data)
end

Instance Method Details

#asn1_typeObject



424
425
426
# File 'lib/snmp/varbind.rb', line 424

def asn1_type
  "Opaque"
end

#encodeObject



428
429
430
# File 'lib/snmp/varbind.rb', line 428

def encode
  encode_tlv(Opaque_TAG, self)
end