Methods
Attributes
[RW] body
[RW] headers
[RW] method
[RW] path
Public Class methods
new(method, path, body = nil, headers = {})
     # File activeresource/lib/active_resource/http_mock.rb, line 151
151:     def initialize(method, path, body = nil, headers = {})
152:       @method, @path, @body, @headers = method, path, body, headers.reverse_merge('Content-Type' => 'application/xml')
153:     end
Public Instance methods
==(other_request)
     # File activeresource/lib/active_resource/http_mock.rb, line 155
155:     def ==(other_request)
156:       other_request.hash == hash
157:     end
eql?(other_request)
     # File activeresource/lib/active_resource/http_mock.rb, line 159
159:     def eql?(other_request)
160:       self == other_request
161:     end
hash()
     # File activeresource/lib/active_resource/http_mock.rb, line 167
167:     def hash
168:       "#{path}#{method}#{headers}".hash
169:     end
to_s()
     # File activeresource/lib/active_resource/http_mock.rb, line 163
163:     def to_s
164:       "<#{method.to_s.upcase}: #{path} [#{headers}] (#{body})>"
165:     end