Parent

Methods

Class/Module Index [+]

Quicksearch

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 D:/Develope/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activeresource-3.0.9/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 D:/Develope/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activeresource-3.0.9/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 D:/Develope/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activeresource-3.0.9/lib/active_resource/http_mock.rb, line 236
def to_s
  "<#{method.to_s.upcase}: #{path} [#{headers}] (#{body})>"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.