lib/boletosimples/client.rb in boletosimples-0.0.1 vs lib/boletosimples/client.rb in boletosimples-0.0.2

- old
+ new

@@ -13,10 +13,10 @@ @username = username @password = password # defaults @production = options.delete(:production) - @base_uri = (@production ? PRODUCTION_BASE_URI : SANDBOX_BASE_URI) + @base_uri = options[:base_uri] || (@production ? PRODUCTION_BASE_URI : SANDBOX_BASE_URI) @user_agent = options.delete(:user_agent) options[:format] ||= :json options.each do |k, v| self.class.send k, v