Class: Ashikawa::Core::Configuration
- Inherits:
-
Object
- Object
- Ashikawa::Core::Configuration
- Defined in:
- lib/ashikawa-core/configuration.rb
Overview
Configuration of Ashikawa::Core
Instance Attribute Summary collapse
-
#adapter ⇒ Object
private
The HTTP adapter instance.
-
#connection ⇒ Object
private
The Connection object.
-
#database_name ⇒ Object
private
The name of the database you want to talk with.
-
#logger ⇒ Object
private
The logger instance.
-
#password ⇒ Object
private
The password for authentication.
-
#url ⇒ Object
private
The URL of the database instance.
-
#username ⇒ Object
private
The username for authentication.
Instance Attribute Details
#adapter ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The HTTP adapter instance
26 27 28 |
# File 'lib/ashikawa-core/configuration.rb', line 26 def adapter @adapter end |
#connection ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The Connection object
46 47 48 49 50 |
# File 'lib/ashikawa-core/configuration.rb', line 46 def connection @connection ||= setup_new_connection @connection.authenticate_with(username, password) if username && password @connection end |
#database_name ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The name of the database you want to talk with
55 56 57 |
# File 'lib/ashikawa-core/configuration.rb', line 55 def database_name @database_name ||= '_system' end |
#logger ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The logger instance
21 22 23 |
# File 'lib/ashikawa-core/configuration.rb', line 21 def logger @logger end |
#password ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The password for authentication
36 37 38 |
# File 'lib/ashikawa-core/configuration.rb', line 36 def password @password end |
#url ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The URL of the database instance
11 12 13 |
# File 'lib/ashikawa-core/configuration.rb', line 11 def url @url end |
#username ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The username for authentication
31 32 33 |
# File 'lib/ashikawa-core/configuration.rb', line 31 def username @username end |