Class: NETSNMP::ScopedPDU

Inherits:
PDU
  • Object
show all
Defined in:
lib/netsnmp/scoped_pdu.rb

Constant Summary

Constants inherited from PDU

PDU::MAXREQUESTID

Instance Attribute Summary collapse

Attributes inherited from PDU

#community, #request_id, #type, #varbinds, #version

Instance Method Summary collapse

Methods inherited from PDU

#add_varbind, build, decode, #to_asn, #to_der, #to_hex

Constructor Details

#initialize(type:, auth_param: "", security_level: 3, engine_id: nil, context: nil, **options) ⇒ ScopedPDU

Returns a new instance of ScopedPDU.



9
10
11
12
13
14
15
# File 'lib/netsnmp/scoped_pdu.rb', line 9

def initialize(type:, auth_param: "", security_level: 3, engine_id: nil, context: nil, **options)
  @auth_param = auth_param
  @security_level = security_level
  @engine_id = engine_id
  @context = context
  super(type: type, version: 3, community: nil, **options)
end

Instance Attribute Details

#auth_paramObject (readonly)

Returns the value of attribute auth_param.



7
8
9
# File 'lib/netsnmp/scoped_pdu.rb', line 7

def auth_param
  @auth_param
end

#engine_idObject (readonly)

Returns the value of attribute engine_id.



7
8
9
# File 'lib/netsnmp/scoped_pdu.rb', line 7

def engine_id
  @engine_id
end

#security_levelObject (readonly)

Returns the value of attribute security_level.



7
8
9
# File 'lib/netsnmp/scoped_pdu.rb', line 7

def security_level
  @security_level
end