Class: Blinkman::Handler

Inherits:
Object
  • Object
show all
Defined in:
lib/blinkman/handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action, event) ⇒ Handler

Returns a new instance of Handler.



4
5
6
7
# File 'lib/blinkman/handler.rb', line 4

def initialize(action, event)
  @action = action
  @event = event
end

Instance Attribute Details

#actionObject (readonly)

Returns the value of attribute action.



3
4
5
# File 'lib/blinkman/handler.rb', line 3

def action
  @action
end

#eventObject (readonly)

Returns the value of attribute event.



3
4
5
# File 'lib/blinkman/handler.rb', line 3

def event
  @event
end