Class: CDP::Timeline::Client::Swagger::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/cdp/timeline/client/swagger/configuration.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Configuration

Returns a new instance of Configuration.

Yields:

  • (_self)

Yield Parameters:


12
13
14
15
16
17
18
# File 'lib/cdp/timeline/client/swagger/configuration.rb', line 12

def initialize
  @scheme = 'https'
  @host = 'cdp.rd.services'
  @base_path = '/event_api'

  yield(self) if block_given?
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.


10
11
12
# File 'lib/cdp/timeline/client/swagger/configuration.rb', line 10

def api_key
  @api_key
end

#base_pathObject

Returns the value of attribute base_path.


9
10
11
# File 'lib/cdp/timeline/client/swagger/configuration.rb', line 9

def base_path
  @base_path
end

#hostObject

Returns the value of attribute host.


8
9
10
# File 'lib/cdp/timeline/client/swagger/configuration.rb', line 8

def host
  @host
end

#schemeObject

Returns the value of attribute scheme.


7
8
9
# File 'lib/cdp/timeline/client/swagger/configuration.rb', line 7

def scheme
  @scheme
end

Class Method Details

.defaultObject

The default Configuration object.


21
22
23
# File 'lib/cdp/timeline/client/swagger/configuration.rb', line 21

def self.default
  @@default ||= Configuration.new
end

Instance Method Details

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:


25
26
27
# File 'lib/cdp/timeline/client/swagger/configuration.rb', line 25

def configure
  yield(self) if block_given?
end