Class: ActiveResource::LogSubscriber

### Home Classes Methods

### In Files

- lib/active_resource/log_subscriber.rb

### Parent

ActiveSupport::LogSubscriber

### Methods

- #logger
- #request

### 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::LogSubscriber

### Public Instance Methods

logger() click to toggle source

    # File lib/active_resource/log_subscriber.rb, line 9
    def logger
      ActiveResource::Base.logger
    end

request(event) click to toggle source

    # File lib/active_resource/log_subscriber.rb, line 3
    def request(event)
      result = event.payload[:result]
      info "#{event.payload[:method].to_s.upcase} #{event.payload[:request_uri]}"
      info "--> %d %s %d (%.1fms)" % [result.code, result.message, result.body.to_s.length, event.duration]
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.