Class: BimsApiClient::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_formatObject

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_keyObject

Returns the value of attribute code_key.



3
4
5
# File 'lib/configuration.rb', line 3

def code_key
  @code_key
end

#contacts_pathObject

Returns the value of attribute contacts_path.



3
4
5
# File 'lib/configuration.rb', line 3

def contacts_path
  @contacts_path
end

#data_keyObject

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_keyObject

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_keyObject

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_nameObject

Returns the value of attribute instance_name.



3
4
5
# File 'lib/configuration.rb', line 3

def instance_name
  @instance_name
end

#instance_urlObject

Returns the value of attribute instance_url.



3
4
5
# File 'lib/configuration.rb', line 3

def instance_url
  @instance_url
end

#not_initialized_messageObject

Returns the value of attribute not_initialized_message.



3
4
5
# File 'lib/configuration.rb', line 3

def not_initialized_message
  @not_initialized_message
end

#passwordObject

Returns the value of attribute password.



3
4
5
# File 'lib/configuration.rb', line 3

def password
  @password
end

#redis_urlObject

Returns the value of attribute redis_url.



3
4
5
# File 'lib/configuration.rb', line 3

def redis_url
  @redis_url
end

#sales_pathObject

Returns the value of attribute sales_path.



3
4
5
# File 'lib/configuration.rb', line 3

def sales_path
  @sales_path
end

#status_keyObject

Returns the value of attribute status_key.



3
4
5
# File 'lib/configuration.rb', line 3

def status_key
  @status_key
end

#status_value_errorObject

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_okObject

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

#usernameObject

Returns the value of attribute username.



3
4
5
# File 'lib/configuration.rb', line 3

def username
  @username
end

#users_pathObject

Returns the value of attribute users_path.



3
4
5
# File 'lib/configuration.rb', line 3

def users_path
  @users_path
end