Class: Kreuzcrawl::AuthConfigHeader
- Inherits:
-
Data
- Object
- Data
- Kreuzcrawl::AuthConfigHeader
- Extended by:
- T::Sig
- Includes:
- AuthConfig
- Defined in:
- lib/kreuzcrawl/native.rb
Overview
Custom authentication header.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
-
#value ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
90 91 92 |
# File 'lib/kreuzcrawl/native.rb', line 90 def name @name end |
#value ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
90 91 92 |
# File 'lib/kreuzcrawl/native.rb', line 90 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
114 115 116 |
# File 'lib/kreuzcrawl/native.rb', line 114 def self.from_hash(hash) new(name: hash[:name] || hash["name"], value: hash[:value] || hash["value"]) end |
Instance Method Details
#basic? ⇒ Boolean
103 |
# File 'lib/kreuzcrawl/native.rb', line 103 def basic? = false |
#bearer? ⇒ Boolean
106 |
# File 'lib/kreuzcrawl/native.rb', line 106 def bearer? = false |
#header? ⇒ Boolean
109 |
# File 'lib/kreuzcrawl/native.rb', line 109 def header? = true |