Class: Evey::Reactor
- Inherits:
-
Object
- Object
- Evey::Reactor
- Defined in:
- lib/evey/reactor.rb
Instance Attribute Summary collapse
-
#event ⇒ Object
Returns the value of attribute event.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(event) ⇒ Reactor
constructor
A new instance of Reactor.
Constructor Details
#initialize(event) ⇒ Reactor
Returns a new instance of Reactor.
8 9 10 |
# File 'lib/evey/reactor.rb', line 8 def initialize(event) @event = event end |
Instance Attribute Details
#event ⇒ Object
Returns the value of attribute event.
6 7 8 |
# File 'lib/evey/reactor.rb', line 6 def event @event end |
Class Method Details
.call(event) ⇒ Object
2 3 4 |
# File 'lib/evey/reactor.rb', line 2 def self.call(event) new(event).call end |
Instance Method Details
#call ⇒ Object
12 13 |
# File 'lib/evey/reactor.rb', line 12 def call end |