Class: SNMP::ObjectId

Class | SNMP::ObjectId
In: | lib/snmp/varbind.rb
Parent: | Array

### Methods

asn1_type decode encode index inspect new subtree_of? to_oid to_s to_varbind

### Included Modules

Comparable

### Public Class methods

decode(value_data)
new(id=[])

Create an object id. The input is expected to be either a string in the format "n.n.n.n.n.n" or an array of integers.

### Public Instance methods

asn1_type()
encode()
index(parent_tree)

Returns an index based on the difference between this ObjectId and the provided parent ObjectId.

For example, ObjectId.new("1.3.6.1.5").index("1.3.6.1") returns an ObjectId of "5".

inspect()
subtree_of?(parent_tree)

Returns true if this ObjectId is a subtree of the provided parent tree ObjectId. For example, "1.3.6.1.5" is a subtree of "1.3.6.1".

to_oid()
to_s()
to_varbind()

[Validate]