Method: ApiModel::HttpRequest#run

Defined in:
lib/api_model/http_request.rb

#runObject



24
25
26
27
28
29
30
# File 'lib/api_model/http_request.rb', line 24

def run
  run_callbacks :run_request do
    Log.debug "#{method.to_s.upcase} #{full_path} with headers: #{options[:headers]}"
    self.api_call = Typhoeus.send method, full_path, options
    Response.new self, config
  end
end