Class: Net::SNMP::V2InformDsl

Inherits:
V2TrapDsl show all
Includes:
Debug
Defined in:
lib/net/snmp/trap_handler/v2_inform_dsl.rb

Instance Attribute Summary collapse

Attributes inherited from V2TrapDsl

#message

Instance Method Summary collapse

Methods included from Debug

#print_packet, #time

Methods inherited from V2TrapDsl

#oid, #pdu, #uptime, #varbinds

Constructor Details

#initialize(message) ⇒ V2InformDsl

Returns a new instance of V2InformDsl.



7
8
9
# File 'lib/net/snmp/trap_handler/v2_inform_dsl.rb', line 7

def initialize(message)
  super
end

Instance Attribute Details

#responseObject

Returns the value of attribute response.



5
6
7
# File 'lib/net/snmp/trap_handler/v2_inform_dsl.rb', line 5

def response
  @response
end

Instance Method Details

#okObject



11
12
13
# File 'lib/net/snmp/trap_handler/v2_inform_dsl.rb', line 11

def ok
  message.echo
end