Class: Snmpjr::PduV2C
- Inherits:
-
Object
- Object
- Snmpjr::PduV2C
- Defined in:
- lib/snmpjr/pdu_v2c.rb
Direct Known Subclasses
Defined Under Namespace
Modules: Constants
Instance Method Summary collapse
Instance Method Details
#create(oids) ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/snmpjr/pdu_v2c.rb', line 10 def create oids pdu = create_new_pdu oids.map {|oid| oid = Snmpjr::Wrappers::SMI::OID.new oid variable_binding = Snmpjr::Wrappers::SMI::VariableBinding.new oid pdu.add variable_binding } pdu.type = Snmpjr::PduV2C::Constants::GET pdu end |