Class: Spikard::SecuritySchemeInfoHttp
- Inherits:
-
Data
- Object
- Data
- Spikard::SecuritySchemeInfoHttp
- Extended by:
- T::Sig
- Includes:
- SecuritySchemeInfo
- Defined in:
- lib/spikard/native.rb
Overview
Variant SecuritySchemeInfoHttp of the SecuritySchemeInfo sum type.
Instance Attribute Summary collapse
-
#bearer_format ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
-
#scheme ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#bearer_format ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
34 35 36 |
# File 'lib/spikard/native.rb', line 34 def bearer_format @bearer_format end |
#scheme ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
34 35 36 |
# File 'lib/spikard/native.rb', line 34 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
50 |
# File 'lib/spikard/native.rb', line 50 def api_key? = false |
#http? ⇒ Boolean
47 |
# File 'lib/spikard/native.rb', line 47 def http? = true |