method
new
v2.2.1 -
Show latest stable
- Class:
ActiveResource::Request
new(method, path, body = nil, headers = {})public
No documentation available.
# File activeresource/lib/active_resource/http_mock.rb, line 151
def initialize(method, path, body = nil, headers = {})
@method, @path, @body, @headers = method, path, body, headers.merge(ActiveResource::Connection::HTTP_FORMAT_HEADER_NAMES[method] => 'application/xml')
end