Class: Kreuzcrawl::AuthConfigHeader

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
AuthConfig
Defined in:
lib/kreuzcrawl/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



90
91
92
# File 'lib/kreuzcrawl/native.rb', line 90

def name
  @name
end

#valueObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



90
91
92
# File 'lib/kreuzcrawl/native.rb', line 90

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



114
115
116
# File 'lib/kreuzcrawl/native.rb', line 114

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

Instance Method Details

#basic?Boolean

Returns:

  • (Boolean)


103
# File 'lib/kreuzcrawl/native.rb', line 103

def basic? = false

#bearer?Boolean

Returns:

  • (Boolean)


106
# File 'lib/kreuzcrawl/native.rb', line 106

def bearer? = false

#header?Boolean

Returns:

  • (Boolean)


109
# File 'lib/kreuzcrawl/native.rb', line 109

def header? = true