Class: Svelte::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/svelte/configuration.rb

Overview

Holds miscelanious configuration options for the current Swagger API specification

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options:) ⇒ Configuration

Creates a new Configuration instance

Parameters:

  • options (Hash)

    configuration options



10
11
12
13
14
15
# File 'lib/svelte/configuration.rb', line 10

def initialize(options:)
  @host = options[:host]
  @base_path = options[:base_path]
  @protocol = options[:protocol] || default_protocol
  @headers = options[:headers]
end

Instance Attribute Details

#base_pathObject (readonly)

Returns the value of attribute base_path.



7
8
9
# File 'lib/svelte/configuration.rb', line 7

def base_path
  @base_path
end

#headersObject (readonly)

Returns the value of attribute headers.



7
8
9
# File 'lib/svelte/configuration.rb', line 7

def headers
  @headers
end

#hostObject (readonly)

Returns the value of attribute host.



7
8
9
# File 'lib/svelte/configuration.rb', line 7

def host
  @host
end

#protocolObject (readonly)

Returns the value of attribute protocol.



7
8
9
# File 'lib/svelte/configuration.rb', line 7

def protocol
  @protocol
end