Class: Spikard::SecuritySchemeInfoApiKey

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

Overview

Variant SecuritySchemeInfoApiKey of the SecuritySchemeInfo sum type.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#locationObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



60
61
62
# File 'lib/spikard/native.rb', line 60

def location
  @location
end

#nameObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



60
61
62
# File 'lib/spikard/native.rb', line 60

def name
  @name
end

Class Method Details

.from_hash(hash) ⇒ Object



79
80
81
# File 'lib/spikard/native.rb', line 79

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

Instance Method Details

#api_key?Boolean

Returns:

  • (Boolean)


75
76
77
# File 'lib/spikard/native.rb', line 75

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

#http?Boolean

Returns:

  • (Boolean)


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

def http? = false