Class: Aikido::Zen::Collector::Events::TrackUser Private
- Inherits:
-
Aikido::Zen::Collector::Event
- Object
- Aikido::Zen::Collector::Event
- Aikido::Zen::Collector::Events::TrackUser
- 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(actor) ⇒ TrackUser
constructor
private
A new instance of TrackUser.
- #inspect ⇒ Object private
Methods inherited from Aikido::Zen::Collector::Event
Constructor Details
#initialize(actor) ⇒ TrackUser
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 TrackUser.
228 229 230 231 |
# File 'lib/aikido/zen/collector/event.rb', line 228 def initialize(actor) super() @actor = actor 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.
224 225 226 |
# File 'lib/aikido/zen/collector/event.rb', line 224 def self.from_json(data) new(Aikido::Zen::Actor.from_json(data[:actor])) 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.
233 234 235 236 237 |
# File 'lib/aikido/zen/collector/event.rb', line 233 def as_json super.update({ actor: @actor.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.
239 240 241 |
# File 'lib/aikido/zen/collector/event.rb', line 239 def handle(collector) collector.handle_track_user(@actor) 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.
243 244 245 |
# File 'lib/aikido/zen/collector/event.rb', line 243 def inspect "#<#{self.class.name} #{@actor.id} #{@actor.name}>" end |