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



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

def location
  @location
end

#nameObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



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

def name
  @name
end

Class Method Details

.from_hash(hash) ⇒ Object



82
83
84
# File 'lib/spikard/native.rb', line 82

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)


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

def api_key? = true

#http?Boolean

Returns:

  • (Boolean)


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

def http? = false