Class: Minds::Config::Base
- Inherits:
-
Object
- Object
- Minds::Config::Base
- Defined in:
- lib/minds/config/base.rb
Constant Summary collapse
- DEFAULT_BASE_URL =
"https://mdb.ai".freeze
- DEFAULT_LOG_ERRORS =
false
- DEFAULT_API_VERSION =
"api".freeze
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#api_version ⇒ Object
Returns the value of attribute api_version.
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#log_errors ⇒ Object
Returns the value of attribute log_errors.
Instance Method Summary collapse
-
#initialize ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
11 12 13 14 15 16 |
# File 'lib/minds/config/base.rb', line 11 def initialize @api_key = nil @base_url = DEFAULT_BASE_URL @log_errors = DEFAULT_LOG_ERRORS @api_version = DEFAULT_API_VERSION end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
6 7 8 |
# File 'lib/minds/config/base.rb', line 6 def api_key @api_key end |
#api_version ⇒ Object
Returns the value of attribute api_version.
6 7 8 |
# File 'lib/minds/config/base.rb', line 6 def api_version @api_version end |
#base_url ⇒ Object
Returns the value of attribute base_url.
6 7 8 |
# File 'lib/minds/config/base.rb', line 6 def base_url @base_url end |
#log_errors ⇒ Object
Returns the value of attribute log_errors.
6 7 8 |
# File 'lib/minds/config/base.rb', line 6 def log_errors @log_errors end |