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



34
35
36
# File 'lib/spikard/native.rb', line 34

def bearer_format
  @bearer_format
end

#schemeObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



34
35
36
# File 'lib/spikard/native.rb', line 34

def scheme
  @scheme
end

Class Method Details

.from_hash(hash) ⇒ Object



55
56
57
# File 'lib/spikard/native.rb', line 55

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)


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

def api_key? = false

#http?Boolean

Returns:

  • (Boolean)


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

def http? = true