Class: SCAnalytics::Connections::Connection
- Inherits:
-
Object
- Object
- SCAnalytics::Connections::Connection
- Defined in:
- lib/sc_analytics/connections/connection.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
-
#service ⇒ Object
readonly
Returns the value of attribute service.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(connection_name, options) ⇒ Connection
constructor
A new instance of Connection.
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, ) @connection_name = connection_name @host = [:connection][:host] @port = [:connection][:port] @service = [:connection][:service] @username = [:credentials][:username] @password = [:credentials][:password] end |
Instance Attribute Details
#host ⇒ Object (readonly)
Returns the value of attribute host.
7 8 9 |
# File 'lib/sc_analytics/connections/connection.rb', line 7 def host @host end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
7 8 9 |
# File 'lib/sc_analytics/connections/connection.rb', line 7 def port @port end |
#service ⇒ Object (readonly)
Returns the value of attribute service.
7 8 9 |
# File 'lib/sc_analytics/connections/connection.rb', line 7 def service @service end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
7 8 9 |
# File 'lib/sc_analytics/connections/connection.rb', line 7 def username @username end |