Class: SCAnalytics::Connections::Connection

Inherits:
Object
  • Object
show all
Defined in:
lib/sc_analytics/connections/connection.rb

Direct Known Subclasses

Oracle

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connection_name, config) ⇒ Connection

Returns a new instance of Connection.



9
10
11
12
13
# File 'lib/sc_analytics/connections/connection.rb', line 9

def initialize(connection_name, config)
  @connection_name = connection_name
  @username = config[:username]
  @password = config[:password]
end

Instance Attribute Details

#hostObject (readonly)

Returns the value of attribute host.



7
8
9
# File 'lib/sc_analytics/connections/connection.rb', line 7

def host
  @host
end

#portObject (readonly)

Returns the value of attribute port.



7
8
9
# File 'lib/sc_analytics/connections/connection.rb', line 7

def port
  @port
end

#usernameObject (readonly)

Returns the value of attribute username.



7
8
9
# File 'lib/sc_analytics/connections/connection.rb', line 7

def username
  @username
end