Sha256: 432e49a323f6cfc19d8d250663e5d7c1c6bc429eb649726654e5ababdb6869ca

Contents?: true

Size: 723 Bytes

Versions: 5

Compression:

Stored size: 723 Bytes

Contents

# frozen_string_literal: true

class Cognito
  class Client
    class Response
      class IdentitySearch < self
        def create_assessment(attributes = {})
          Command::CreateIdentityAssessment.call(
            attributes.merge(
              connection:                 connection,
              identity_search_identifier: identifier
            )
          )
        end

        def processing?
          false
        end

        private

        def identifier
          ResourceIdentifier.call(data_without_parent)
        end

        def data_without_parent
          data.to_h.reject { |key| key.equal?(:parent) }
        end
      end # IdentitySearch
    end # Response
  end # Client
end # Cognito

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cognito-client-0.5.4 lib/cognito/client/response/identity_search.rb
cognito-client-0.5.3 lib/cognito/client/response/identity_search.rb
cognito-client-0.5.2 lib/cognito/client/response/identity_search.rb
cognito-client-0.5.1 lib/cognito/client/response/identity_search.rb
cognito-client-0.5.0 lib/cognito/client/response/identity_search.rb