Class: Aikido::Zen::Collector::Events::TrackOutbound Private
- Inherits:
-
Aikido::Zen::Collector::Event
- Object
- Aikido::Zen::Collector::Event
- Aikido::Zen::Collector::Events::TrackOutbound
- Defined in:
- lib/aikido/zen/collector/event.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary
Attributes inherited from Aikido::Zen::Collector::Event
Class Method Summary collapse
- .from_json(data) ⇒ Object private
Instance Method Summary collapse
- #as_json ⇒ Object private
- #handle(collector) ⇒ Object private
-
#initialize(connection) ⇒ TrackOutbound
constructor
private
A new instance of TrackOutbound.
- #inspect ⇒ Object private
Methods inherited from Aikido::Zen::Collector::Event
Constructor Details
#initialize(connection) ⇒ TrackOutbound
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of TrackOutbound.
255 256 257 258 |
# File 'lib/aikido/zen/collector/event.rb', line 255 def initialize(connection) super() @connection = connection end |
Class Method Details
.from_json(data) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
251 252 253 |
# File 'lib/aikido/zen/collector/event.rb', line 251 def self.from_json(data) new(OutboundConnection.from_json(data[:connection])) end |
Instance Method Details
#as_json ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
260 261 262 263 264 |
# File 'lib/aikido/zen/collector/event.rb', line 260 def as_json super.update({ connection: @connection.as_json }) end |
#handle(collector) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
266 267 268 |
# File 'lib/aikido/zen/collector/event.rb', line 266 def handle(collector) collector.handle_track_outbound(@connection) end |
#inspect ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
270 271 272 |
# File 'lib/aikido/zen/collector/event.rb', line 270 def inspect "#<#{self.class.name} #{@connection.host}:#{@connection.port}>" end |