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
32 33 34 |
# File 'lib/spikard/native.rb', line 32 def bearer_format @bearer_format end |
#scheme ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
32 33 34 |
# File 'lib/spikard/native.rb', line 32 def scheme @scheme end |
Class Method Details
.from_hash(hash) ⇒ Object
49 50 51 |
# File 'lib/spikard/native.rb', line 49 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
45 46 47 |
# File 'lib/spikard/native.rb', line 45 def api_key? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#http? ⇒ Boolean
43 |
# File 'lib/spikard/native.rb', line 43 def http? = true |