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



4916
4917
4918
# File 'lib/xberg/native.rb', line 4916

def name
  @name
end

#valueObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



4916
4917
4918
# File 'lib/xberg/native.rb', line 4916

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



4937
4938
4939
# File 'lib/xberg/native.rb', line 4937

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

Instance Method Details

#basic?Boolean

Returns:

  • (Boolean)


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

def basic? = false

#bearer?Boolean

Returns:

  • (Boolean)


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

def bearer? = false

#header?Boolean

Returns:

  • (Boolean)


4933
4934
4935
# File 'lib/xberg/native.rb', line 4933

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