Module: ServiceOperation::Base::ClassMethods

Defined in:
lib/service_operation/base.rb

Overview

Class Methods

Instance Method Summary collapse

Instance Method Details

#allow_remoteObject



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

def allow_remote
  @allow_remote || false
end

#allow_remote!Object

Allow use via ProxyAction



34
35
36
# File 'lib/service_operation/base.rb', line 34

def allow_remote!
  @allow_remote = true
end

#call(context = {}) ⇒ Object



25
26
27
# File 'lib/service_operation/base.rb', line 25

def call(context = {})
  new(context).tap(&:run).context
end

#call!(context = {}) ⇒ Object



29
30
31
# File 'lib/service_operation/base.rb', line 29

def call!(context = {})
  new(context).tap(&:run!).context
end