Class: SNMP::Open::Value
- Inherits:
-
Struct
- Object
- Struct
- SNMP::Open::Value
- Defined in:
- lib/snmp/open/parser.rb
Instance Attribute Summary collapse
-
#oid ⇒ Object
Returns the value of attribute oid.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#oid ⇒ Object
Returns the value of attribute oid
8 9 10 |
# File 'lib/snmp/open/parser.rb', line 8 def oid @oid end |
#type ⇒ Object
Returns the value of attribute type
8 9 10 |
# File 'lib/snmp/open/parser.rb', line 8 def type @type end |
#value ⇒ Object
Returns the value of attribute value
8 9 10 |
# File 'lib/snmp/open/parser.rb', line 8 def value @value end |
Instance Method Details
#id_after(path) ⇒ Object
9 10 11 |
# File 'lib/snmp/open/parser.rb', line 9 def id_after(path) oid.sub(/^#{path}\./, '') if oid.start_with?(path) end |