lib/epom/epom_element.rb in epom-0.8.5 vs lib/epom/epom_element.rb in epom-0.9
- old
+ new
@@ -1,10 +1,9 @@
module Epom
class EpomElement
include HTTMultiParty
- base_uri 'https://n29.epom.com/'
default_params :output => 'json'
debug_output $stderr
def self.login(username, password)
@@username = username
@@ -57,9 +56,10 @@
body_params[:username] = @@username
end
if params_validation(url_params, url_params_signature) and params_validation(body_params, body_params_signature)
http_proxy ENV['proxy_address'], ENV['proxy_port'], ENV['proxy_user'], ENV['proxy_password']
+ base_uri Epom.config.epom_server
response = send(method, url, :query => body_params)
if response.success?
return response.parsed_response
else
response.code
\ No newline at end of file