Sha256: 926287967ef347ed13c48618b9c06471b9f12e692686cc23e728c1f66725f3c2

Contents?: true

Size: 1.15 KB

Versions: 7

Compression:

Stored size: 1.15 KB

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module HasJSendResult
        module Concern
          module InstanceMethods
            ##
            # @api public
            # @param kwargs [Hash{Symbol => Object}]
            # @return [ConvenientService::Service::Plugins::HasJSendResult::Entities::Result]
            #
            def success(**kwargs)
              self.class.success(**kwargs.merge(service: self))
            end

            ##
            # @api public
            # @param kwargs [Hash{Symbol => Object}]
            # @return [ConvenientService::Service::Plugins::HasJSendResult::Entities::Result]
            #
            def failure(**kwargs)
              self.class.failure(**kwargs.merge(service: self))
            end

            ##
            # @api public
            # @param kwargs [Hash{Symbol => Object}]
            # @return [ConvenientService::Service::Plugins::HasJSendResult::Entities::Result]
            #
            def error(**kwargs)
              self.class.error(**kwargs.merge(service: self))
            end
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
convenient_service-0.19.1 lib/convenient_service/service/plugins/has_j_send_result/concern/instance_methods.rb
convenient_service-0.19.0 lib/convenient_service/service/plugins/has_j_send_result/concern/instance_methods.rb
convenient_service-0.18.0 lib/convenient_service/service/plugins/has_j_send_result/concern/instance_methods.rb
convenient_service-0.17.0 lib/convenient_service/service/plugins/has_j_send_result/concern/instance_methods.rb
convenient_service-0.16.0 lib/convenient_service/service/plugins/has_j_send_result/concern/instance_methods.rb
convenient_service-0.15.0 lib/convenient_service/service/plugins/has_j_send_result/concern/instance_methods.rb
convenient_service-0.14.0 lib/convenient_service/service/plugins/has_j_send_result/concern/instance_methods.rb