Class: Xberg::AuthConfigBearer
- Inherits:
-
Data
- Object
- Data
- Xberg::AuthConfigBearer
- Extended by:
- T::Sig
- Includes:
- AuthConfig
- Defined in:
- lib/xberg/native.rb
Overview
Bearer token authentication.
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#token ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
4296 4297 4298 |
# File 'lib/xberg/native.rb', line 4296 def token @token end |
Class Method Details
.from_hash(hash) ⇒ Object
4312 4313 4314 |
# File 'lib/xberg/native.rb', line 4312 def self.from_hash(hash) new(token: hash[:token] || hash["token"]) end |
Instance Method Details
#basic? ⇒ Boolean
4304 |
# File 'lib/xberg/native.rb', line 4304 def basic? = false |
#bearer? ⇒ Boolean
4306 |
# File 'lib/xberg/native.rb', line 4306 def bearer? = true |
#header? ⇒ Boolean
4308 4309 4310 |
# File 'lib/xberg/native.rb', line 4308 def header? = false # @param hash [Hash] deserialized from the native extension # @return [self] |