lib/fog/arubacloud/service.rb in fog-arubacloud-0.0.3 vs lib/fog/arubacloud/service.rb in fog-arubacloud-0.0.5

- old
+ new

@@ -14,11 +14,11 @@ def ws_enduser_url(url=nil) @ws_enduser_url = url || Fog::ArubaCloud::DEFAULT_WS_ENDUSER_URL end - def request(options) + def _request(options) http_method = options[:http_method] || :get @request_url = "#{@ws_enduser_url}/#{options[:method]}" params = {headers: headers} params[:expects] = options[:expected] || [200, 201] @@ -33,10 +33,12 @@ # send request begin response = @connection.request(:method => http_method) rescue Excon::Errors::Timeout # raise an error - raise Fog::ArubaCloud::Errors::RequestTimeOut.new("Request timed out after: #{60 unless params[:read_timeout]}") + raise Fog::ArubaCloud::Errors::RequestTimeOut.new( + "Request timed out after: #{60 unless params[:read_timeout]}" + ) end # decode the response and return it Fog::JSON.decode(response.body) end \ No newline at end of file