Class: Xberg::AuthConfigBasic
- Inherits:
-
Data
- Object
- Data
- Xberg::AuthConfigBasic
- Extended by:
- T::Sig
- Includes:
- AuthConfig
- Defined in:
- lib/xberg/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
4272 4273 4274 |
# File 'lib/xberg/native.rb', line 4272 def password @password end |
#username ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
4272 4273 4274 |
# File 'lib/xberg/native.rb', line 4272 def username @username end |
Class Method Details
.from_hash(hash) ⇒ Object
4291 4292 4293 |
# File 'lib/xberg/native.rb', line 4291 def self.from_hash(hash) new(username: hash[:username] || hash["username"], password: hash[:password] || hash["password"]) end |
Instance Method Details
#basic? ⇒ Boolean
4283 |
# File 'lib/xberg/native.rb', line 4283 def basic? = true |
#bearer? ⇒ Boolean
4285 |
# File 'lib/xberg/native.rb', line 4285 def bearer? = false |
#header? ⇒ Boolean
4287 4288 4289 |
# File 'lib/xberg/native.rb', line 4287 def header? = false # @param hash [Hash] deserialized from the native extension # @return [self] |