module ServiceOperation::Base::ClassMethods

Class Methods

Public Instance Methods

allow_remote() click to toggle source
# File lib/service_operation/base.rb, line 38
def allow_remote
  @allow_remote || false
end
allow_remote!() click to toggle source

Allow use via ProxyAction

# File lib/service_operation/base.rb, line 34
def allow_remote!
  @allow_remote = true
end
call(context = {}) click to toggle source
# File lib/service_operation/base.rb, line 25
def call(context = {})
  new(context).tap(&:run).context
end
call!(context = {}) click to toggle source
# File lib/service_operation/base.rb, line 29
def call!(context = {})
  new(context).tap(&:run!).context
end