Class: Aikido::Zen::Collector::Events::TrackAttackWave Private
- Inherits:
-
Aikido::Zen::Collector::Event
- Object
- Aikido::Zen::Collector::Event
- Aikido::Zen::Collector::Events::TrackAttackWave
- 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(being_blocked:) ⇒ TrackAttackWave
constructor
private
A new instance of TrackAttackWave.
- #inspect ⇒ Object private
Methods inherited from Aikido::Zen::Collector::Event
Constructor Details
#initialize(being_blocked:) ⇒ TrackAttackWave
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 TrackAttackWave.
107 108 109 110 |
# File 'lib/aikido/zen/collector/event.rb', line 107 def initialize(being_blocked:) super() @being_blocked = being_blocked 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.
101 102 103 104 105 |
# File 'lib/aikido/zen/collector/event.rb', line 101 def self.from_json(data) new( being_blocked: data[:being_blocked] ) 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.
112 113 114 115 116 |
# File 'lib/aikido/zen/collector/event.rb', line 112 def as_json super.update({ being_blocked: @being_blocked }) 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.
118 119 120 |
# File 'lib/aikido/zen/collector/event.rb', line 118 def handle(collector) collector.handle_track_attack_wave(being_blocked: @being_blocked) 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.
122 123 124 |
# File 'lib/aikido/zen/collector/event.rb', line 122 def inspect "#<#{self.class.name} #{@being_blocked}>" end |