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, options) ⇒ Connection



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

def initialize(connection_name, options)
  @connection_name = connection_name
  @host = options[:connection][:host]
  @port = options[:connection][:port]
  @service = options[:connection][:service]
  @username = options[:credentials][:username]
  @password = options[:credentials][: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

#serviceObject (readonly)

Returns the value of attribute service.



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

def service
  @service
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