Class: PacketGen::Header::SNMP::VariableBindings
- Inherits:
-
RASN1::Model
- Object
- RASN1::Model
- PacketGen::Header::SNMP::VariableBindings
- Defined in:
- lib/packetgen/header/snmp.rb
Overview
Class to handle SNMP VariableBindingsList
VarBindList ::= SEQUENCE (SIZE (0..max-bindings)) OF VarBind
Instance Method Summary collapse
-
#[](idx) ⇒ VarBind?
Get ‘idx’th element from the list.
-
#size ⇒ Integer
Get element counts in list.
Instance Method Details
#[](idx) ⇒ VarBind?
Get ‘idx’th element from the list
81 82 83 |
# File 'lib/packetgen/header/snmp.rb', line 81 def [](idx) value[idx] end |
#size ⇒ Integer
Get element counts in list
87 88 89 |
# File 'lib/packetgen/header/snmp.rb', line 87 def size value.size end |