Class: ActiveResource::Connection

Inherits:
Object
  • Object
show all
Defined in:
lib/liquidplanner/ext/connection.rb

Instance Method Summary collapse

Instance Method Details

#get_raw(path, headers = {}) ⇒ Object

get a raw response (not just the decoded response body); used for non-standard responses (e.g. binary / file data)



6
7
8
# File 'lib/liquidplanner/ext/connection.rb', line 6

def get_raw(path, headers = {})
  with_auth { request(:get, path, build_request_headers(headers, :get, self.site.merge(path))) }
end