Class: Snmp2mkr::Snmp::Varbind
- Inherits:
-
Object
- Object
- Snmp2mkr::Snmp::Varbind
- Defined in:
- lib/snmp2mkr/snmp.rb
Instance Attribute Summary collapse
-
#oid ⇒ Object
readonly
Returns the value of attribute oid.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(oid, value) ⇒ Varbind
constructor
A new instance of Varbind.
Constructor Details
#initialize(oid, value) ⇒ Varbind
Returns a new instance of Varbind.
83 84 85 86 |
# File 'lib/snmp2mkr/snmp.rb', line 83 def initialize(oid , value) @oid = oid @value = value end |
Instance Attribute Details
#oid ⇒ Object (readonly)
Returns the value of attribute oid.
87 88 89 |
# File 'lib/snmp2mkr/snmp.rb', line 87 def oid @oid end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
87 88 89 |
# File 'lib/snmp2mkr/snmp.rb', line 87 def value @value end |