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



36
37
38
# File 'lib/spikard/native.rb', line 36

def bearer_format
  @bearer_format
end

#schemeObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



36
37
38
# File 'lib/spikard/native.rb', line 36

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)


51
52
53
# File 'lib/spikard/native.rb', line 51

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

#http?Boolean

Returns:

  • (Boolean)


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

def http? = true