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
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name
606 607 608 |
# File 'lib/xberg/native.rb', line 606 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value
606 607 608 |
# File 'lib/xberg/native.rb', line 606 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
625 626 627 |
# File 'lib/xberg/native.rb', line 625 def self.from_hash(hash) new(name: hash[:name] || hash["name"], value: hash[:value] || hash["value"]) end |
Instance Method Details
#basic? ⇒ Boolean
617 |
# File 'lib/xberg/native.rb', line 617 def basic? = false |
#bearer? ⇒ Boolean
619 |
# File 'lib/xberg/native.rb', line 619 def bearer? = false |
#header? ⇒ Boolean
621 622 623 |
# File 'lib/xberg/native.rb', line 621 def header? = true # @param hash [Hash] deserialized from the native extension # @return [self] |