Class: SNMP::Null

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


475
476
477
# File 'lib/snmp/varbind.rb', line 475

def asn1_type
  'Null'
end

.decode(value_data) ⇒ Object


467
468
469
# File 'lib/snmp/varbind.rb', line 467

def decode(value_data)
  Null
end

.encodeObject


471
472
473
# File 'lib/snmp/varbind.rb', line 471

def encode
  encode_null
end

.to_sObject


479
480
481
# File 'lib/snmp/varbind.rb', line 479

def to_s
  asn1_type
end