Class: Ashikawa::Core::Configuration

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

Overview

Configuration of Ashikawa::Core

Instance Attribute Summary collapse

Instance Attribute Details

#adapterObject

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

Returns:

  • Object



26
27
28
# File 'lib/ashikawa-core/configuration.rb', line 26

def adapter
  @adapter
end

#connectionObject

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

Returns:

  • Connection



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_nameObject

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

Returns:

  • String



55
56
57
# File 'lib/ashikawa-core/configuration.rb', line 55

def database_name
  @database_name ||= '_system'
end

#loggerObject

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

Returns:

  • Object



21
22
23
# File 'lib/ashikawa-core/configuration.rb', line 21

def logger
  @logger
end

#passwordObject

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

Returns:

  • String



36
37
38
# File 'lib/ashikawa-core/configuration.rb', line 36

def password
  @password
end

#urlObject

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

Returns:

  • String



11
12
13
# File 'lib/ashikawa-core/configuration.rb', line 11

def url
  @url
end

#usernameObject

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

Returns:

  • String



31
32
33
# File 'lib/ashikawa-core/configuration.rb', line 31

def username
  @username
end