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
61 62 63 |
# File 'lib/spikard/native.rb', line 61 def location @location end |
#name ⇒ Object (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
77 |
# File 'lib/spikard/native.rb', line 77 def api_key? = true |
#http? ⇒ Boolean
74 |
# File 'lib/spikard/native.rb', line 74 def http? = false |