Class: Net::SNMP::V1TrapDsl
- Inherits:
-
Object
- Object
- Net::SNMP::V1TrapDsl
show all
- Includes:
- Debug
- Defined in:
- lib/net/snmp/trap_handler/v1_trap_dsl.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods included from Debug
#debug, #error, #fatal, #info, #print_packet, #time, #warn
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)
@message = 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
@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
message.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
|