Class: Connectator::SQL::Connection::ServerInstanceString
- Inherits:
-
Object
- Object
- Connectator::SQL::Connection::ServerInstanceString
- Defined in:
- lib/connectator/sql/connection/server_instance_string.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(server, instance) ⇒ ServerInstanceString
constructor
A new instance of ServerInstanceString.
- #server_string ⇒ Object
Constructor Details
#initialize(server, instance) ⇒ ServerInstanceString
Returns a new instance of ServerInstanceString.
9 10 11 12 |
# File 'lib/connectator/sql/connection/server_instance_string.rb', line 9 def initialize(server, instance) @server = server @instance = instance end |
Class Method Details
.build(server, instance) ⇒ Object
5 6 7 |
# File 'lib/connectator/sql/connection/server_instance_string.rb', line 5 def self.build(server, instance) new(server, instance).server_string end |
Instance Method Details
#server_string ⇒ Object
14 15 16 |
# File 'lib/connectator/sql/connection/server_instance_string.rb', line 14 def server_string "#{@server}#{server_instance}" end |