Module: ServiceActor::Configurable::ClassMethods

Defined in:
lib/service_actor/configurable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argument_error_classObject

Returns the value of attribute argument_error_class.



32
33
34
# File 'lib/service_actor/configurable.rb', line 32

def argument_error_class
  @argument_error_class
end

#failure_classObject

Returns the value of attribute failure_class.



32
33
34
# File 'lib/service_actor/configurable.rb', line 32

def failure_class
  @failure_class
end

Instance Method Details

#inherited(child) ⇒ Object



11
12
13
14
15
16
17
18
# File 'lib/service_actor/configurable.rb', line 11

def inherited(child)
  super

  child.argument_error_class =
    argument_error_class || ServiceActor::ArgumentError

  child.failure_class = failure_class || ServiceActor::Failure
end