lib/the_help/service.rb
# Executes the service and returns the result
#
# @return [TheHelp::Service::Result]
Executes the service and returns the result
Executes the service and returns the result
def call
      validate_service_definition
      catch(:stop) do
        authorize
        log_service_call
        main
        check_result!
      end
      self.block_result = yield result if block_given?
      throw :stop if stop_caller
      return block_result if block_given?
      result
    end
def call validate_service_definition catch ( :stop ) do authorize log_service_call main check_result! end self . block_result = yield result if block_given? throw :stop if stop_caller return block_result if block_given? result end
Executes the service and returns the result
Executes the service and returns the result
None
TheHelp::Service::Result