Class: Spikard::SecuritySchemeInfoApiKey
- Inherits:
-
Data
- Object
- Data
- Spikard::SecuritySchemeInfoApiKey
- Extended by:
- T::Sig
- Includes:
- SecuritySchemeInfo
- Defined in:
- lib/spikard/native.rb
Overview
Variant SecuritySchemeInfoApiKey of the SecuritySchemeInfo sum type.
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
-
#name ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#location ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
54 55 56 |
# File 'lib/spikard/native.rb', line 54 def location @location end |
#name ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
54 55 56 |
# File 'lib/spikard/native.rb', line 54 def name @name end |
Class Method Details
.from_hash(hash) ⇒ Object
71 72 73 |
# File 'lib/spikard/native.rb', line 71 def self.from_hash(hash) new(location: hash[:location] || hash["location"], name: hash[:name] || hash["name"]) end |
Instance Method Details
#api_key? ⇒ Boolean
67 68 69 |
# File 'lib/spikard/native.rb', line 67 def api_key? = true # @param hash [Hash] deserialized from the native extension # @return [self] |
#http? ⇒ Boolean
65 |
# File 'lib/spikard/native.rb', line 65 def http? = false |