Class: RestClient::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/restclient/restclient_add_timeout.rb

Class Method Summary collapse

Class Method Details

.execute(args, &block) ⇒ Object



15
16
17
18
19
20
21
# File 'lib/restclient/restclient_add_timeout.rb', line 15

def self.execute(args, &block)
  #puts "Calling overriden RestClient::Request execute"
  timeouts = {:timeout=>90000000, :open_timeout=>90000000}
  args.merge!(timeouts)
  #puts "Req args #{args}"
  new(args).execute(& block)
end