Class: Minds::Config::Base

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeBase

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_keyObject

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_versionObject

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_urlObject

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_errorsObject

Returns the value of attribute log_errors.



6
7
8
# File 'lib/minds/config/base.rb', line 6

def log_errors
  @log_errors
end