lib/aliyun/ecs.rb in aliyun-api-0.1.0 vs lib/aliyun/ecs.rb in aliyun-api-0.1.1

- old
+ new

@@ -11,10 +11,10 @@ class ECS def initialize(options={}) Aliyun[:access_key_id] = options[:access_key_id] || Aliyun[:access_key_id] || ENV['ALIYUN_ACCESS_KEY_ID'] Aliyun[:access_key_secret] = options[:access_key_secret] || Aliyun[:access_key_secret] || ENV['ALIYUN_ACCESS_KEY_SECRET'] Aliyun[:endpoint_url] = options[:endpoint_url] || Aliyun[:endpoint_url] - Aliyun[:request_parameters][:Version] = options[:version] || Aliyun[:version] + Aliyun[:request_parameters][:Version] = options[:version] || Aliyun[:request_parameters][:Version] end def method_missing(method_name, *args,&block) super if /[A-Z]/ =~ method_name.to_s