Class: Apollo::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/apollo/event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, meta = {}, &action)
  @name, @to, @meta, @action = name, to.to_sym, meta, action
end

Instance Attribute Details

#actionObject

Returns the value of attribute action.



3
4
5
# File 'lib/apollo/event.rb', line 3

def action
  @action
end

#metaObject

Returns the value of attribute meta.



3
4
5
# File 'lib/apollo/event.rb', line 3

def meta
  @meta
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/apollo/event.rb', line 3

def name
  @name
end

#toObject

Returns the value of attribute to.



3
4
5
# File 'lib/apollo/event.rb', line 3

def to
  @to
end