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