Class: BimsApiClient::Configuration
- Inherits:
-
Object
- Object
- BimsApiClient::Configuration
- Defined in:
- lib/configuration.rb
Instance Attribute Summary collapse
-
#api_request_format ⇒ Object
Returns the value of attribute api_request_format.
-
#code_key ⇒ Object
Returns the value of attribute code_key.
-
#contacts_path ⇒ Object
Returns the value of attribute contacts_path.
-
#data_key ⇒ Object
Returns the value of attribute data_key.
-
#data_session_id_key ⇒ Object
Returns the value of attribute data_session_id_key.
-
#data_session_key ⇒ Object
Returns the value of attribute data_session_key.
-
#instance_name ⇒ Object
Returns the value of attribute instance_name.
-
#instance_url ⇒ Object
Returns the value of attribute instance_url.
-
#not_initialized_message ⇒ Object
Returns the value of attribute not_initialized_message.
-
#password ⇒ Object
Returns the value of attribute password.
-
#redis_url ⇒ Object
Returns the value of attribute redis_url.
-
#sales_path ⇒ Object
Returns the value of attribute sales_path.
-
#status_key ⇒ Object
Returns the value of attribute status_key.
-
#status_value_error ⇒ Object
Returns the value of attribute status_value_error.
-
#status_value_ok ⇒ Object
Returns the value of attribute status_value_ok.
-
#username ⇒ Object
Returns the value of attribute username.
-
#users_path ⇒ Object
Returns the value of attribute users_path.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/configuration.rb', line 7 def initialize @not_initialized_message = 'Client not initialized' @api_request_format = 'json' @users_path = 'users' @contacts_path = 'contacts' @sales_path = 'sales' @status_key = 'status' @status_value_ok = 'ok' @status_value_error = 'error' @code_key = 'code' @data_key = 'data' @data_session_key = 'Session' @data_session_id_key = 'id' @redis_url = 'redis://127.0.0.1:6379' @username = nil @password = nil @instance_name = nil @instance_url = nil end |
Instance Attribute Details
#api_request_format ⇒ Object
Returns the value of attribute api_request_format.
3 4 5 |
# File 'lib/configuration.rb', line 3 def api_request_format @api_request_format end |
#code_key ⇒ Object
Returns the value of attribute code_key.
3 4 5 |
# File 'lib/configuration.rb', line 3 def code_key @code_key end |
#contacts_path ⇒ Object
Returns the value of attribute contacts_path.
3 4 5 |
# File 'lib/configuration.rb', line 3 def contacts_path @contacts_path end |
#data_key ⇒ Object
Returns the value of attribute data_key.
3 4 5 |
# File 'lib/configuration.rb', line 3 def data_key @data_key end |
#data_session_id_key ⇒ Object
Returns the value of attribute data_session_id_key.
3 4 5 |
# File 'lib/configuration.rb', line 3 def data_session_id_key @data_session_id_key end |
#data_session_key ⇒ Object
Returns the value of attribute data_session_key.
3 4 5 |
# File 'lib/configuration.rb', line 3 def data_session_key @data_session_key end |
#instance_name ⇒ Object
Returns the value of attribute instance_name.
3 4 5 |
# File 'lib/configuration.rb', line 3 def instance_name @instance_name end |
#instance_url ⇒ Object
Returns the value of attribute instance_url.
3 4 5 |
# File 'lib/configuration.rb', line 3 def instance_url @instance_url end |
#not_initialized_message ⇒ Object
Returns the value of attribute not_initialized_message.
3 4 5 |
# File 'lib/configuration.rb', line 3 def @not_initialized_message end |
#password ⇒ Object
Returns the value of attribute password.
3 4 5 |
# File 'lib/configuration.rb', line 3 def password @password end |
#redis_url ⇒ Object
Returns the value of attribute redis_url.
3 4 5 |
# File 'lib/configuration.rb', line 3 def redis_url @redis_url end |
#sales_path ⇒ Object
Returns the value of attribute sales_path.
3 4 5 |
# File 'lib/configuration.rb', line 3 def sales_path @sales_path end |
#status_key ⇒ Object
Returns the value of attribute status_key.
3 4 5 |
# File 'lib/configuration.rb', line 3 def status_key @status_key end |
#status_value_error ⇒ Object
Returns the value of attribute status_value_error.
3 4 5 |
# File 'lib/configuration.rb', line 3 def status_value_error @status_value_error end |
#status_value_ok ⇒ Object
Returns the value of attribute status_value_ok.
3 4 5 |
# File 'lib/configuration.rb', line 3 def status_value_ok @status_value_ok end |
#username ⇒ Object
Returns the value of attribute username.
3 4 5 |
# File 'lib/configuration.rb', line 3 def username @username end |
#users_path ⇒ Object
Returns the value of attribute users_path.
3 4 5 |
# File 'lib/configuration.rb', line 3 def users_path @users_path end |