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

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

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".

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".

[Validate]