Class: Kreuzcrawl::AuthConfigBasic
- Inherits:
-
Data
- Object
- Data
- Kreuzcrawl::AuthConfigBasic
- Extended by:
- T::Sig
- Includes:
- AuthConfig
- Defined in:
- lib/kreuzcrawl/native.rb
Overview
HTTP Basic authentication.
Instance Attribute Summary collapse
-
#password ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
-
#username ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#password ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
33 34 35 |
# File 'lib/kreuzcrawl/native.rb', line 33 def password @password end |
#username ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
33 34 35 |
# File 'lib/kreuzcrawl/native.rb', line 33 def username @username end |
Class Method Details
.from_hash(hash) ⇒ Object
52 53 54 |
# File 'lib/kreuzcrawl/native.rb', line 52 def self.from_hash(hash) new(username: hash[:username] || hash["username"], password: hash[:password] || hash["password"]) end |
Instance Method Details
#basic? ⇒ Boolean
44 |
# File 'lib/kreuzcrawl/native.rb', line 44 def basic? = true |
#bearer? ⇒ Boolean
46 |
# File 'lib/kreuzcrawl/native.rb', line 46 def bearer? = false |
#header? ⇒ Boolean
48 49 50 |
# File 'lib/kreuzcrawl/native.rb', line 48 def header? = false # @param hash [Hash] deserialized from the native extension # @return [self] |