Sha256: f15af880994ed44a428603b761c7e9bd087ed6399e4d6943c9e504ddc5101130

Contents?: true

Size: 352 Bytes

Versions: 4

Compression:

Stored size: 352 Bytes

Contents

class Snmpjr
  class Pdu
    module Constants
      GET = -96
    end

    def create oid
      pdu = Snmpjr::Wrappers::PDU.new
      oid = Snmpjr::Wrappers::SMI::OID.new oid
      variable_binding = Snmpjr::Wrappers::SMI::VariableBinding.new oid
      pdu.add variable_binding
      pdu.type = Snmpjr::Pdu::Constants::GET
      pdu
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
snmpjr-0.1.4-java lib/snmpjr/pdu.rb
snmpjr-0.1.2-java lib/snmpjr/pdu.rb
snmpjr-0.1.3-java lib/snmpjr/pdu.rb
snmpjr-0.1.0-java lib/snmpjr/pdu.rb