Class: NETSNMP::ScopedPDU
Constant Summary
Constants inherited from PDU
Instance Attribute Summary collapse
-
#auth_param ⇒ Object
Returns the value of attribute auth_param.
-
#engine_id ⇒ Object
readonly
Returns the value of attribute engine_id.
-
#security_level ⇒ Object
Returns the value of attribute security_level.
Attributes inherited from PDU
#community, #request_id, #type, #varbinds, #version
Instance Method Summary collapse
-
#initialize(type:, headers:, **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:, headers:, **options) ⇒ ScopedPDU
Returns a new instance of ScopedPDU.
11 12 13 14 |
# File 'lib/netsnmp/scoped_pdu.rb', line 11 def initialize(type:, headers:, **) @engine_id, @context = headers super(type: type, headers: [3, nil], **) end |
Instance Attribute Details
#auth_param ⇒ Object
Returns the value of attribute auth_param.
9 10 11 |
# File 'lib/netsnmp/scoped_pdu.rb', line 9 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
Returns the value of attribute security_level.
9 10 11 |
# File 'lib/netsnmp/scoped_pdu.rb', line 9 def security_level @security_level end |