Sha256: 9331b525545015857b3ee341de9d9e4500191c161f8030dc5b4fc6c262f5e3b6

Contents?: true

Size: 1.28 KB

Versions: 1

Compression:

Stored size: 1.28 KB

Contents

# typed: ignore
# frozen_string_literal: true

module Setsuzoku
  module Credential
    extend T::Sig
    extend T::Helpers
    interface!

    # Create a stub implementation of the credential for testing purposes
    #
    # @return [Struct] a struct that implements stubbed version of a credential's required methods.
    sig { abstract.returns(Struct) }
    def self.stub_credential; end

    # The status of the credential.
    #
    # @return [Hash] the status of the credential.
    sig { abstract.returns(String) }
    def status; end

    # Setter for the status of the credential.
    #
    # @return [Hash] the status of the credential.
    sig { abstract.params(val: T.nilable(String)).returns(String) }
    def status=(val); end

    # A settings object for the credential.
    #
    # @return [Hash] the settings for the credential.
    sig { abstract.returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
    def settings; end

    # Setter for the settings object for the credential.
    #
    # @param val [Hash] a settings object to set.
    #
    # @return [Hash] the settings for the credential.
    sig do
      abstract
          .params(val: T.nilable(T::Hash[T.untyped, T.untyped]))
          .returns(T.nilable(T::Hash[T.untyped, T.untyped]))
    end
    def settings=(val); end
  end
end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
setsuzoku-0.11.9 lib/setsuzoku/credential.rb