Class: Monoz::Services::ActionService

Inherits:
BaseService show all
Defined in:
lib/monoz/services/action_service.rb

Instance Method Summary collapse

Methods inherited from BaseService

call, #initialize

Constructor Details

This class inherits a constructor from Monoz::Services::BaseService

Instance Method Details

#call(action) ⇒ Object



9
10
11
12
13
14
# File 'lib/monoz/services/action_service.rb', line 9

def call(action)
  @action = Monoz.actions.find(action)
  say_invalid_action(action) if @action.nil?
  Monoz.verbose = true
  run_action
end