Sha256: 3d57fd68cae8f3ab47afdfe3100faf459d39edf21c73c6d82f56d7b5a3655318

Contents?: true

Size: 745 Bytes

Versions: 8

Compression:

Stored size: 745 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module HasJSendResult
        module Commands
          class IsResult < Support::Command
            ##
            # @!attribute [r] result
            #   @return [Object] Can be any type.
            #
            attr_reader :result

            ##
            # @param result [Object] Can be any type.
            # @return [void]
            #
            def initialize(result:)
              @result = result
            end

            ##
            # @return [void]
            #
            def call
              result.class.include?(Entities::Result::Concern)
            end
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
convenient_service-0.19.1 lib/convenient_service/service/plugins/has_j_send_result/commands/is_result.rb
convenient_service-0.19.0 lib/convenient_service/service/plugins/has_j_send_result/commands/is_result.rb
convenient_service-0.18.0 lib/convenient_service/service/plugins/has_j_send_result/commands/is_result.rb
convenient_service-0.17.0 lib/convenient_service/service/plugins/has_j_send_result/commands/is_result.rb
convenient_service-0.16.0 lib/convenient_service/service/plugins/has_j_send_result/commands/is_result.rb
convenient_service-0.15.0 lib/convenient_service/service/plugins/has_j_send_result/commands/is_result.rb
convenient_service-0.14.0 lib/convenient_service/service/plugins/has_j_send_result/commands/is_result.rb
convenient_service-0.13.0 lib/convenient_service/service/plugins/has_j_send_result/commands/is_result.rb