Class: CDP::Timeline::Client::Swagger::Configuration
- Inherits:
-
Object
- Object
- CDP::Timeline::Client::Swagger::Configuration
- Defined in:
- lib/cdp/timeline/client/swagger/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#base_path ⇒ Object
Returns the value of attribute base_path.
-
#host ⇒ Object
Returns the value of attribute host.
-
#scheme ⇒ Object
Returns the value of attribute scheme.
Class Method Summary collapse
-
.default ⇒ Object
The default Configuration object.
Instance Method Summary collapse
- #configure {|_self| ... } ⇒ Object
-
#initialize {|_self| ... } ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize {|_self| ... } ⇒ Configuration
Returns a new instance of Configuration.
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_key ⇒ Object
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_path ⇒ Object
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 |
#host ⇒ Object
Returns the value of attribute host.
8 9 10 |
# File 'lib/cdp/timeline/client/swagger/configuration.rb', line 8 def host @host end |
#scheme ⇒ Object
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
.default ⇒ Object
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
25 26 27 |
# File 'lib/cdp/timeline/client/swagger/configuration.rb', line 25 def configure yield(self) if block_given? end |