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::BadRequest
- ActiveResource::Base
- ActiveResource::ClientError
- ActiveResource::Connection
- ActiveResource::CustomMethods
- ActiveResource::CustomMethods::ClassMethods
- ActiveResource::CustomMethods::InstanceMethods
- ActiveResource::Errors
- ActiveResource::ForbiddenAccess
- ActiveResource::Formats
- ActiveResource::Formats::JsonFormat
- ActiveResource::Formats::XmlFormat
- ActiveResource::HttpMock
- ActiveResource::InvalidRequestError
- ActiveResource::LogSubscriber
- ActiveResource::Observing
- ActiveResource::Railtie
- ActiveResource::Request
- ActiveResource::ResourceConflict
- ActiveResource::ResourceGone
- ActiveResource::ResourceNotFound
- ActiveResource::Response
- ActiveResource::SSLError
- ActiveResource::ServerError
- ActiveResource::TimeoutError
- ActiveResource::UnauthorizedAccess
- 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 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.