# File lib/rudy/aws/sdb.rb, line 19
19:       def initialize(access_key=nil, secret_key=nil, region=nil, debug=nil)
20:         raise NoAccessKey if access_key.nil? || access_key.empty?
21:         raise NoSecretKey if secret_key.nil? || secret_key.empty?
22:           
23:         url ||= 'http://sdb.amazonaws.com'
24:         # There is a bug with passing :server to EC2::Base.new so 
25:         # we'll use the environment variable for now. 
26:         #if region && Rudy::AWS.valid_region?(region)
27:         #  "#{region}.sdb.amazonaws.com"
28:         #end
29:         
30:         @access_key_id = access_key || ENV['AWS_ACCESS_KEY']
31:         @secret_access_key = secret_key || ENV['AWS_SECRET_KEY']
32:         @base_url = url
33:         @debug = debug || StringIO.new
34:       end