2015-10-26 12:04:01 +03:00
|
|
|
module Provider
|
|
|
|
|
class ConnectionFactory
|
|
|
|
|
|
2015-10-26 16:20:05 +03:00
|
|
|
def init config
|
2015-10-26 12:04:01 +03:00
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def connection account_name
|
2015-10-26 16:20:05 +03:00
|
|
|
@connections[account_name] || @from_config
|
2015-10-26 12:04:01 +03:00
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|