Module: Services::Base::ClassMethods
- Defined in:
- lib/services/base.rb
Instance Method Summary collapse
Instance Method Details
#call(**args) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/services/base.rb', line 12 def call(**args) service = new(**args) service.instance_variable_set(:@response, Services::Response.new) if ServiceObjectsRails.return_service_response_object service.response.body = service.call service.response else service.call end end |