Class: Connectator::SQL::Connection::ServerInstanceString

Inherits:
Object
  • Object
show all
Defined in:
lib/connectator/sql/connection/server_instance_string.rb

Class Method Summary collapse

Instance Method Summary collapse

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_stringObject



14
15
16
# File 'lib/connectator/sql/connection/server_instance_string.rb', line 14

def server_string
  "#{@server}#{server_instance}"
end