Class: Xberg::AuthConfigHeader
- Inherits:
-
Data
- Object
- Data
- Xberg::AuthConfigHeader
- Extended by:
- T::Sig
- Includes:
- AuthConfig
- Defined in:
- lib/xberg/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
4564 4565 4566 |
# File 'lib/xberg/native.rb', line 4564 def name @name end |
#value ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
4564 4565 4566 |
# File 'lib/xberg/native.rb', line 4564 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
4585 4586 4587 |
# File 'lib/xberg/native.rb', line 4585 def self.from_hash(hash) new(name: hash[:name] || hash["name"], value: hash[:value] || hash["value"]) end |
Instance Method Details
#basic? ⇒ Boolean
4577 |
# File 'lib/xberg/native.rb', line 4577 def basic? = false |
#bearer? ⇒ Boolean
4579 |
# File 'lib/xberg/native.rb', line 4579 def bearer? = false |
#header? ⇒ Boolean
4581 4582 4583 |
# File 'lib/xberg/native.rb', line 4581 def header? = true # @param hash [Hash] deserialized from the native extension # @return [self] |