Sha256: ee377129385cd36d7a77bc2256e73ad2ce2832aa8b5e5ce28657f750240eb804

Contents?: true

Size: 1.5 KB

Versions: 16

Compression:

Stored size: 1.5 KB

Contents

# typed: strict
# frozen_string_literal: true

module Setsuzoku
  module Service
    module WebService
      module Credentials
        module BasicAuthCredential
          include Setsuzoku::Credential
          extend T::Sig
          extend T::Helpers
          abstract!

          # The username to use for the credential.
          #
          # @return [String] the credential's token.
          sig{ abstract.returns(T.nilable(String)) }
          def username; end

          # The username to set for the credential.
          #
          # @return [String] the credential's token to set.
          #
          sig{ abstract.params(val: String).returns(T.nilable(String)) }
          def username=(val); end

          # The password to use for the credential.
          #
          # @return [String] the credential's token.
          sig{ abstract.returns(T.nilable(String)) }
          def password; end

          # The password to set for the credential.
          #
          # @return [String] the credential's token to set.
          #
          sig{ abstract.params(val: String).returns(T.nilable(String)) }
          def password=(val); end

          # Stub a basic_auth_credential-like instance.
          #
          # @return [Struct] a stubbed basic_auth_credential-like struct.
          sig { returns(Struct) }
          def self.stub_credential
            s = Struct.new(:username, :password)
            s.new('stubbed_username', 'stubbed_password')
          end
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
setsuzoku-0.11.8 lib/setsuzoku/service/web_service/credentials/basic_auth_credential.rb
setsuzoku-0.11.7 lib/setsuzoku/service/web_service/credentials/basic_auth_credential.rb
setsuzoku-0.11.6 lib/setsuzoku/service/web_service/credentials/basic_auth_credential.rb
setsuzoku-0.11.5 lib/setsuzoku/service/web_service/credentials/basic_auth_credential.rb
setsuzoku-0.11.0 lib/setsuzoku/service/web_service/credentials/basic_auth_credential.rb
setsuzoku-0.10.12 lib/setsuzoku/service/web_service/credentials/basic_auth_credential.rb
setsuzoku-0.10.11 lib/setsuzoku/service/web_service/credentials/basic_auth_credential.rb
setsuzoku-0.10.10 lib/setsuzoku/service/web_service/credentials/basic_auth_credential.rb
setsuzoku-0.10.9 lib/setsuzoku/service/web_service/credentials/basic_auth_credential.rb
setsuzoku-0.10.8 lib/setsuzoku/service/web_service/credentials/basic_auth_credential.rb
setsuzoku-0.10.7 lib/setsuzoku/service/web_service/credentials/basic_auth_credential.rb
setsuzoku-0.10.6 lib/setsuzoku/service/web_service/credentials/basic_auth_credential.rb
setsuzoku-0.10.5 lib/setsuzoku/service/web_service/credentials/basic_auth_credential.rb
setsuzoku-0.10.4 lib/setsuzoku/service/web_service/credentials/basic_auth_credential.rb
setsuzoku-0.10.3 lib/setsuzoku/service/web_service/credentials/basic_auth_credential.rb
setsuzoku-0.10.1 lib/setsuzoku/service/web_service/credentials/basic_auth_credential.rb