Class: Apollo::Event
- Inherits:
-
Object
- Object
- Apollo::Event
- Defined in:
- lib/apollo/event.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#meta ⇒ Object
Returns the value of attribute meta.
-
#name ⇒ Object
Returns the value of attribute name.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(name, to, meta = {}, &action) ⇒ Event
constructor
A new instance of Event.
Constructor Details
#initialize(name, to, meta = {}, &action) ⇒ Event
Returns a new instance of Event.
5 6 7 |
# File 'lib/apollo/event.rb', line 5 def initialize(name, to, = {}, &action) @name, @to, @meta, @action = name, to.to_sym, , action end |
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
3 4 5 |
# File 'lib/apollo/event.rb', line 3 def action @action end |
#meta ⇒ Object
Returns the value of attribute meta.
3 4 5 |
# File 'lib/apollo/event.rb', line 3 def @meta end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/apollo/event.rb', line 3 def name @name end |
#to ⇒ Object
Returns the value of attribute to.
3 4 5 |
# File 'lib/apollo/event.rb', line 3 def to @to end |