Class: Net::SNMP::V1TrapDsl
- Inherits:
-
Object
- Object
- Net::SNMP::V1TrapDsl
- Includes:
- Debug
- Defined in:
- lib/net/snmp/trap_handler/v1_trap_dsl.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
- #agent_addr ⇒ Object (also: #agent_address)
- #enterprise ⇒ Object (also: #enterprise_oid)
-
#initialize(message) ⇒ V1TrapDsl
constructor
A new instance of V1TrapDsl.
- #pdu ⇒ Object
- #specific_type ⇒ Object (also: #specific_trap_type)
- #trap_type ⇒ Object (also: #general_trap_type)
- #uptime ⇒ Object
- #varbinds ⇒ Object
Methods included from Debug
Constructor Details
#initialize(message) ⇒ V1TrapDsl
Returns a new instance of V1TrapDsl.
7 8 9 |
# File 'lib/net/snmp/trap_handler/v1_trap_dsl.rb', line 7 def initialize() @message = end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
5 6 7 |
# File 'lib/net/snmp/trap_handler/v1_trap_dsl.rb', line 5 def @message end |
Instance Method Details
#agent_addr ⇒ Object Also known as: agent_address
30 31 32 |
# File 'lib/net/snmp/trap_handler/v1_trap_dsl.rb', line 30 def agent_addr pdu.agent_addr end |
#enterprise ⇒ Object Also known as: enterprise_oid
15 16 17 |
# File 'lib/net/snmp/trap_handler/v1_trap_dsl.rb', line 15 def enterprise pdu.enterprise end |
#pdu ⇒ Object
11 12 13 |
# File 'lib/net/snmp/trap_handler/v1_trap_dsl.rb', line 11 def pdu .pdu end |
#specific_type ⇒ Object Also known as: specific_trap_type
25 26 27 |
# File 'lib/net/snmp/trap_handler/v1_trap_dsl.rb', line 25 def specific_type pdu.specific_type end |
#trap_type ⇒ Object Also known as: general_trap_type
20 21 22 |
# File 'lib/net/snmp/trap_handler/v1_trap_dsl.rb', line 20 def trap_type pdu.trap_type end |
#uptime ⇒ Object
35 36 37 |
# File 'lib/net/snmp/trap_handler/v1_trap_dsl.rb', line 35 def uptime pdu.uptime end |
#varbinds ⇒ Object
39 40 41 |
# File 'lib/net/snmp/trap_handler/v1_trap_dsl.rb', line 39 def varbinds pdu.varbinds end |