Module: CommandServiceObject

Defined in:
lib/command_service_object.rb,
lib/command_service_object/hooks.rb,
lib/command_service_object/failure.rb,
lib/command_service_object/railtie.rb,
lib/command_service_object/version.rb,
lib/command_service_object/configuration.rb,
lib/command_service_object/helpers/check_helper.rb,
lib/command_service_object/helpers/model_helper.rb,
lib/command_service_object/helpers/failure_helper.rb,
lib/command_service_object/helpers/controller_helper.rb

Defined Under Namespace

Modules: CheckHelper, ControllerHelper, FailureHelper, Hooks, ModelHelper Classes: Configuration, Failure, Railtie

Constant Summary collapse

VERSION =
'1.4.1'.freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



17
18
19
# File 'lib/command_service_object.rb', line 17

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



28
29
30
# File 'lib/command_service_object.rb', line 28

def self.configure
  yield(configuration)
end

.resetObject



24
25
26
# File 'lib/command_service_object.rb', line 24

def self.reset
  @configuration = Configuration.new
end