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:, 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:, **options)
  @engine_id, @context = headers
  super(type: type, headers: [3, nil], **options)
end

Instance Attribute Details

#auth_paramObject

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_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

Returns the value of attribute security_level.



9
10
11
# File 'lib/netsnmp/scoped_pdu.rb', line 9

def security_level
  @security_level
end