Class: NNQ::MonitorEvent
- Inherits:
-
Data
- Object
- Data
- NNQ::MonitorEvent
- Defined in:
- lib/nnq/monitor_event.rb
Overview
Lifecycle event emitted by Socket#monitor.
Instance Attribute Summary collapse
-
#detail ⇒ Object
readonly
Returns the value of attribute detail.
-
#endpoint ⇒ Object
readonly
Returns the value of attribute endpoint.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type:, endpoint: nil, detail: nil) ⇒ MonitorEvent
constructor
A new instance of MonitorEvent.
Constructor Details
#initialize(type:, endpoint: nil, detail: nil) ⇒ MonitorEvent
Returns a new instance of MonitorEvent.
14 15 16 |
# File 'lib/nnq/monitor_event.rb', line 14 def initialize(type:, endpoint: nil, detail: nil) super end |
Instance Attribute Details
#detail ⇒ Object (readonly)
Returns the value of attribute detail
13 14 15 16 17 |
# File 'lib/nnq/monitor_event.rb', line 13 MonitorEvent = Data.define(:type, :endpoint, :detail) do def initialize(type:, endpoint: nil, detail: nil) super end end |
#endpoint ⇒ Object (readonly)
Returns the value of attribute endpoint
13 14 15 16 17 |
# File 'lib/nnq/monitor_event.rb', line 13 MonitorEvent = Data.define(:type, :endpoint, :detail) do def initialize(type:, endpoint: nil, detail: nil) super end end |
#type ⇒ Object (readonly)
Returns the value of attribute type
13 14 15 16 17 |
# File 'lib/nnq/monitor_event.rb', line 13 MonitorEvent = Data.define(:type, :endpoint, :detail) do def initialize(type:, endpoint: nil, detail: nil) super end end |