Class: Kandata::Database::ConnectionInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/kandata/database/connection_info.rb

Overview

ignore :reek:Attribute:

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.database_nameObject

Returns the value of attribute database_name.



8
9
10
# File 'lib/kandata/database/connection_info.rb', line 8

def database_name
  @database_name
end

.hostObject

Returns the value of attribute host.



8
9
10
# File 'lib/kandata/database/connection_info.rb', line 8

def host
  @host
end

.user_nameObject

Returns the value of attribute user_name.



8
9
10
# File 'lib/kandata/database/connection_info.rb', line 8

def user_name
  @user_name
end

Class Method Details

.host_and_userObject



15
16
17
# File 'lib/kandata/database/connection_info.rb', line 15

def self.host_and_user
  { host: @host, username: @user_name }
end