Class: NETSNMP::ScopedPDU
Constant Summary
Constants inherited from PDU
Instance Attribute Summary collapse
-
#auth_param ⇒ Object
readonly
Returns the value of attribute auth_param.
-
#engine_id ⇒ Object
readonly
Returns the value of attribute engine_id.
-
#security_level ⇒ Object
readonly
Returns the value of attribute security_level.
Attributes inherited from PDU
#community, #request_id, #type, #varbinds, #version
Instance Method Summary collapse
-
#initialize(type:, auth_param: "", security_level: 3, engine_id: nil, context: nil, **options) ⇒ ScopedPDU
constructor
A new instance of ScopedPDU.
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, **) @auth_param = auth_param @security_level = security_level @engine_id = engine_id @context = context super(type: type, version: 3, community: nil, **) end |
Instance Attribute Details
#auth_param ⇒ Object (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_id ⇒ Object (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_level ⇒ Object (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 |