Method: Fog::AWS::RDS::Mock#initialize

Defined in:
lib/fog/aws/rds.rb

#initialize(options = {}) ⇒ Mock

Returns a new instance of Mock.


99
100
101
102
103
104
105
106
107
108
# File 'lib/fog/aws/rds.rb', line 99

def initialize(options={})

  @use_iam_profile = options[:use_iam_profile]
  @region = options[:region] || 'us-east-1'

  unless ['ap-northeast-1', 'ap-southeast-1', 'ap-southeast-2', 'eu-west-1', 'us-east-1', 'us-west-1', 'us-west-2', 'sa-east-1'].include?(@region)
    raise ArgumentError, "Unknown region: #{@region.inspect}"
  end

end