Class: Spikard::SecuritySchemeInfoHttp

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

Overview

Variant SecuritySchemeInfoHttp of the SecuritySchemeInfo sum type.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bearer_formatObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



32
33
34
# File 'lib/spikard/native.rb', line 32

def bearer_format
  @bearer_format
end

#schemeObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



32
33
34
# File 'lib/spikard/native.rb', line 32

def scheme
  @scheme
end

Class Method Details

.from_hash(hash) ⇒ Object



49
50
51
# File 'lib/spikard/native.rb', line 49

def self.from_hash(hash)
  new(scheme: hash[:scheme] || hash["scheme"], bearer_format: hash[:bearer_format] || hash["bearer_format"])
end

Instance Method Details

#api_key?Boolean

Returns:

  • (Boolean)


45
46
47
# File 'lib/spikard/native.rb', line 45

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

#http?Boolean

Returns:

  • (Boolean)


43
# File 'lib/spikard/native.rb', line 43

def http? = true