Class: Svelte::Configuration
- Inherits:
-
Object
- Object
- Svelte::Configuration
- Defined in:
- lib/svelte/configuration.rb
Overview
Holds miscelanious configuration options for the current Swagger API specification
Instance Attribute Summary collapse
-
#base_path ⇒ Object
readonly
Returns the value of attribute base_path.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#protocol ⇒ Object
readonly
Returns the value of attribute protocol.
Instance Method Summary collapse
-
#initialize(options:) ⇒ Configuration
constructor
Creates a new Configuration instance.
Constructor Details
#initialize(options:) ⇒ Configuration
Creates a new Configuration instance
10 11 12 13 14 15 |
# File 'lib/svelte/configuration.rb', line 10 def initialize(options:) @host = [:host] @base_path = [:base_path] @protocol = [:protocol] || default_protocol @headers = [:headers] end |
Instance Attribute Details
#base_path ⇒ Object (readonly)
Returns the value of attribute base_path.
7 8 9 |
# File 'lib/svelte/configuration.rb', line 7 def base_path @base_path end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
7 8 9 |
# File 'lib/svelte/configuration.rb', line 7 def headers @headers end |
#host ⇒ Object (readonly)
Returns the value of attribute host.
7 8 9 |
# File 'lib/svelte/configuration.rb', line 7 def host @host end |
#protocol ⇒ Object (readonly)
Returns the value of attribute protocol.
7 8 9 |
# File 'lib/svelte/configuration.rb', line 7 def protocol @protocol end |