Class: ActiveResource::Request

### Home Classes Methods

### In Files

- lib/active_resource/http_mock.rb

### Parent

Object

### Methods

- ::new
- #==
- #to_s

### Files

- README.rdoc

### Class/Module Index

Quicksearch

- ActiveResource
- ActiveResource::Base
- ActiveResource::Connection
- ActiveResource::CustomMethods
- ActiveResource::CustomMethods::ClassMethods
- ActiveResource::Errors
- ActiveResource::Formats
- ActiveResource::Formats::JsonFormat
- ActiveResource::Formats::XmlFormat
- ActiveResource::HttpMock
- ActiveResource::InvalidRequestError
- ActiveResource::LogSubscriber
- ActiveResource::Observing
- ActiveResource::Railtie
- ActiveResource::Request
- ActiveResource::Response
- ActiveResource::SSLError
- ActiveResource::TimeoutError
- ActiveResource::Validations

No matching classes.

# 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 258
    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 262
    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 266
    def to_s
      "<#{method.to_s.upcase}: #{path} [#{headers}] (#{body})>"
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.