require "hexx/service/messages" require "hexx/service/parameters" require "hexx/service/validations" require "hexx/service/transactions" module Hexx # Base class for service objects. class Service include Messages, Parameters, Transactions, Validations # Runs the service object. # # The method must be defined in a specific service class, # inherited from Hexx::Service. # def run fail NotImplementedError.new "#{ self.class.name }#run not implemented." end end end