Method: SimpleService::Command#initialize

Defined in:
lib/simple_service/command.rb

#initialize(context = {}) ⇒ Command

Returns a new instance of Command.



9
10
11
12
13
14
15
16
17
# File 'lib/simple_service/command.rb', line 9

def initialize(context={})
  @context = context
  setup_call_chain
  define_getters_and_setters

  unless skip_validation
    ValidatesExpectedKeys.new(provided_keys: context.keys).call
  end
end