Class: Xberg::AuthConfigHeader

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
AuthConfig
Defined in:
lib/xberg/native.rb

Overview

Custom authentication header.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



4309
4310
4311
# File 'lib/xberg/native.rb', line 4309

def name
  @name
end

#valueObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



4309
4310
4311
# File 'lib/xberg/native.rb', line 4309

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



4328
4329
4330
# File 'lib/xberg/native.rb', line 4328

def self.from_hash(hash)
  new(name: hash[:name] || hash["name"], value: hash[:value] || hash["value"])
end

Instance Method Details

#basic?Boolean

Returns:

  • (Boolean)


4320
# File 'lib/xberg/native.rb', line 4320

def basic? = false

#bearer?Boolean

Returns:

  • (Boolean)


4322
# File 'lib/xberg/native.rb', line 4322

def bearer? = false

#header?Boolean

Returns:

  • (Boolean)


4324
4325
4326
# File 'lib/xberg/native.rb', line 4324

def header? = true
# @param hash [Hash] deserialized from the native extension
# @return [self]