Module: ConvenientService::Service::Plugins::HasJSendResult::Concern::InstanceMethods

Defined in:
lib/convenient_service/service/plugins/has_j_send_result/concern/instance_methods.rb

Instance Method Summary collapse

Instance Method Details

#error(**kwargs) ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result

Parameters:

  • kwargs (Hash{Symbol => Object})

Returns:



32
33
34
# File 'lib/convenient_service/service/plugins/has_j_send_result/concern/instance_methods.rb', line 32

def error(**kwargs)
  self.class.error(**kwargs.merge(service: self))
end

#failure(**kwargs) ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result

Parameters:

  • kwargs (Hash{Symbol => Object})

Returns:



23
24
25
# File 'lib/convenient_service/service/plugins/has_j_send_result/concern/instance_methods.rb', line 23

def failure(**kwargs)
  self.class.failure(**kwargs.merge(service: self))
end

#success(**kwargs) ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result

Parameters:

  • kwargs (Hash{Symbol => Object})

Returns:



14
15
16
# File 'lib/convenient_service/service/plugins/has_j_send_result/concern/instance_methods.rb', line 14

def success(**kwargs)
  self.class.success(**kwargs.merge(service: self))
end