Method: Lull#make_call

Defined in:
lib/lull.rb

#make_callObject



18
19
20
21
22
23
24
25
26
27
28
# File 'lib/lull.rb', line 18

def make_call
  response = RestClient::Request.execute(headers: @headers,
                                         method: @meth, payload: @params,
                                         timeout: @config['timeout'], url: @url, verify_ssl: false)
rescue SocketError, IOError => e
  puts "#{e.class}: #{e.message}"
rescue StandardError => e
  e.response
else
  response
end