Class: ModelsLab::Configuration
- Inherits:
-
Object
- Object
- ModelsLab::Configuration
- Defined in:
- lib/modelslab.rb
Constant Summary collapse
- DEFAULT_URI_BASE =
"https://modelslab.com/api"- DEFAULT_REQUEST_TIMEOUT =
120
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#extra_headers ⇒ Object
Returns the value of attribute extra_headers.
-
#request_timeout ⇒ Object
Returns the value of attribute request_timeout.
-
#uri_base ⇒ Object
Returns the value of attribute uri_base.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
38 39 40 41 42 43 |
# File 'lib/modelslab.rb', line 38 def initialize @api_key = nil @uri_base = DEFAULT_URI_BASE @request_timeout = DEFAULT_REQUEST_TIMEOUT @extra_headers = {} end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
33 34 35 |
# File 'lib/modelslab.rb', line 33 def api_key @api_key end |
#extra_headers ⇒ Object
Returns the value of attribute extra_headers.
33 34 35 |
# File 'lib/modelslab.rb', line 33 def extra_headers @extra_headers end |
#request_timeout ⇒ Object
Returns the value of attribute request_timeout.
33 34 35 |
# File 'lib/modelslab.rb', line 33 def request_timeout @request_timeout end |
#uri_base ⇒ Object
Returns the value of attribute uri_base.
33 34 35 |
# File 'lib/modelslab.rb', line 33 def uri_base @uri_base end |