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
Returns the value of attribute token.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#token ⇒ Object (readonly)
Returns the value of attribute token
585 586 587 |
# File 'lib/xberg/native.rb', line 585 def token @token end |
Class Method Details
.from_hash(hash) ⇒ Object
601 602 603 |
# File 'lib/xberg/native.rb', line 601 def self.from_hash(hash) new(token: hash[:token] || hash["token"]) end |
Instance Method Details
#basic? ⇒ Boolean
593 |
# File 'lib/xberg/native.rb', line 593 def basic? = false |
#bearer? ⇒ Boolean
595 |
# File 'lib/xberg/native.rb', line 595 def bearer? = true |
#header? ⇒ Boolean
597 598 599 |
# File 'lib/xberg/native.rb', line 597 def header? = false # @param hash [Hash] deserialized from the native extension # @return [self] |