class ActiveResource::Request

Attributes

body[RW]
headers[RW]
method[RW]
path[RW]

Public Class Methods

new(method, path, body = nil, headers = {}) click to toggle source
# File lib/active_resource/http_mock.rb, line 228
def initialize(method, path, body = nil, headers = {})
  @method, @path, @body, @headers = method, path, body, headers
end

Public Instance Methods

==(req) click to toggle source
# File lib/active_resource/http_mock.rb, line 232
def ==(req)
  path == req.path && method == req.method && headers_match?(req)
end
to_s() click to toggle source
# File lib/active_resource/http_mock.rb, line 236
def to_s
  "<#{method.to_s.upcase}: #{path} [#{headers}] (#{body})>"
end