Method: Fog::AWS::Elasticache::Real#initialize
- Defined in:
- lib/fog/aws/elasticache.rb
#initialize(options = {}) ⇒ Real
Returns a new instance of Real.
51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/fog/aws/elasticache.rb', line 51 def initialize(={}) @aws_access_key_id = [:aws_access_key_id] @aws_secret_access_key = [:aws_secret_access_key] @hmac = Fog::HMAC.new('sha256', @aws_secret_access_key) [:region] ||= 'us-east-1' @host = [:host] || "elasticache.#{[:region]}.amazonaws.com" @path = [:path] || '/' @port = [:port] || 443 @scheme = [:scheme] || 'https' @connection = Fog::Connection.new( "#{@scheme}://#{@host}:#{@port}#{@path}", [:persistent] ) end |