lib = File.dirname __FILE__ Dir[File.join(lib, "service/**/*.rb")].each { |file| require file } 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