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
6 7 8 |
# File 'lib/snmp/open/parser.rb', line 6 def oid @oid end |
#type ⇒ Object
Returns the value of attribute type
6 7 8 |
# File 'lib/snmp/open/parser.rb', line 6 def type @type end |
#value ⇒ Object
Returns the value of attribute value
6 7 8 |
# File 'lib/snmp/open/parser.rb', line 6 def value @value end |
Instance Method Details
#id_after(path) ⇒ Object
7 8 9 |
# File 'lib/snmp/open/parser.rb', line 7 def id_after(path) oid.sub(/^#{path}\./, '') if oid.start_with?(path) end |