Class: ServiceObjects::Base

Inherits:
Object
  • Object
show all
Extended by:
Helpers::Dependable, Helpers::Parameterized
Includes:
ActiveModel::Validations, Helpers::Exceptions, Helpers::Messages, Helpers::Parameters, Helpers::Validations, Wisper::Publisher
Defined in:
lib/service_objects/base.rb

Overview

Base class for service objects

Examples:

AddItem = Class.new(ServiceObjects::Base)

See Also:

Instance Attribute Summary

Attributes included from Helpers::Parameters

#params

Instance Method Summary collapse

Methods included from Helpers::Parameterized

allows_params

Methods included from Helpers::Parameters

#initialize

Methods included from Helpers::Dependable

depends_on

Methods included from Helpers::Messages

#add_message, #messages, #translate

Methods included from Helpers::Validations

#valid?, #validate!

Methods included from Helpers::Exceptions

#escape

Instance Method Details

#runundefined

This method is abstract.

Runs service object

Returns:

  • (undefined)


38
39
# File 'lib/service_objects/base.rb', line 38

def run
end