class SNMP::OctetString

Public Class Methods

decode(value_data) click to toggle source
# File lib/snmp/varbind.rb, line 131
def self.decode(value_data)
  OctetString.new(value_data)
end

Public Instance Methods

asn1_type() click to toggle source
# File lib/snmp/varbind.rb, line 135
def asn1_type
  "OCTET STRING"
end
encode() click to toggle source
# File lib/snmp/varbind.rb, line 139
def encode
  encode_octet_string(self)
end
to_oid() click to toggle source
# File lib/snmp/varbind.rb, line 143
def to_oid
  oid = ObjectId.new
  each_byte { |b| oid << b }
  oid
end