Class: BellaBaxter::Configuration
- Inherits:
-
Struct
- Object
- Struct
- BellaBaxter::Configuration
- Defined in:
- lib/bella_baxter/models.rb
Overview
Options for constructing a Client.
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#baxter_url ⇒ Object
Returns the value of attribute baxter_url.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
11 12 13 14 |
# File 'lib/bella_baxter/models.rb', line 11 def initialize(**) super self.timeout ||= 10 end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key
5 6 7 |
# File 'lib/bella_baxter/models.rb', line 5 def api_key @api_key end |
#baxter_url ⇒ Object
Returns the value of attribute baxter_url
5 6 7 |
# File 'lib/bella_baxter/models.rb', line 5 def baxter_url @baxter_url end |
#timeout ⇒ Object
Returns the value of attribute timeout
5 6 7 |
# File 'lib/bella_baxter/models.rb', line 5 def timeout @timeout end |