lib/ace-client/base.rb in ace-client-0.0.22 vs lib/ace-client/base.rb in ace-client-0.0.23
- old
+ new
@@ -2,11 +2,10 @@
require 'uri'
module AceClient
class Base
include HTTParty
- ssl_version :TLSv1
attr_accessor :access_key_id
attr_accessor :secret_access_key
attr_accessor :endpoint
attr_accessor :http_proxy
@@ -56,10 +55,10 @@
self.class.debug_output($stdout)
else
self.class.debug_output($stderr)
end
end
- self.class.format (options[:response_format] || ENV['ACE_RESPONSE_FORMAT'] || 'xml').to_sym
+ self.class.format (options[:response_format] || ENV['ACE_RESPONSE_FORMAT'] || self.class.format).to_sym
@version = options[:version]
@path = options[:path] || ENV['ACE_PATH'] || '/'
@user_agent = options[:user_agent]
@headers = options[:headers] || {}
set_http_proxy