Class: SimpleService::EnsureOrganizerIsValid

Inherits:
Organizer
  • Object
show all
Defined in:
lib/simple_service/ensure_organizer_is_valid.rb

Instance Attribute Summary

Attributes inherited from Organizer

#context

Instance Method Summary collapse

Methods inherited from Organizer

call, commands, #commands, #initialize

Methods included from ServiceBase::ClassMethods

#expects, #get_expects, #get_returns, #returns, #skip_validation

Methods included from ServiceBase::InstanceMethods

#all_context_keys, #define_getters_and_setters, #expects, #failed?, #failure!, #find_specified_return_keys, #organizer?, #return_context_with_success_status, #returns, #setup_call_chain, #skip_validation, #successful?, #symbolize_context_keys

Constructor Details

This class inherits a constructor from SimpleService::Organizer

Instance Method Details

#callObject



13
14
15
16
17
18
19
# File 'lib/simple_service/ensure_organizer_is_valid.rb', line 13

def call
  super

  # dont return the keys within this internal service
  # so we dont pollute external service objects
  context.select { |k,v| !expects.include?(k) }
end