Method: Eve::API::Request#dispatch

Defined in:
lib/eve/api/request.rb

#dispatchObject



24
25
26
27
28
29
30
# File 'lib/eve/api/request.rb', line 24

def dispatch
  r = (cached_response || cache_response(Net::HTTP.post_form(URI.parse(uri), post_options).body))
  if r.respond_to?(:error) && r.error
    Eve::Errors.raise(:code => r.error.code, :message => r.error)
  end
  r
end