Sha256: b036a8adae035a47a562546729e2573547959ca7005daed95723790c74881260

Contents?: true

Size: 428 Bytes

Versions: 12

Compression:

Stored size: 428 Bytes

Contents

module HTTParty
  class Response < BlankSlate #:nodoc:
    attr_accessor :body, :code, :message, :headers
    attr_reader :delegate

    def initialize(delegate, body, code, message, headers={})
      @delegate = delegate
      @body = body
      @code = code.to_i
      @message = message
      @headers = headers
    end

    def method_missing(name, *args, &block)
      @delegate.send(name, *args, &block)
    end
  end
end

Version data entries

12 entries across 12 versions & 9 rubygems

Version Path
alexvollmer-httparty-0.4.3 lib/httparty/response.rb
dbalatero-httparty-0.4.4 lib/httparty/response.rb
geetarista-httparty-0.4.5 lib/httparty/response.rb
jnunemaker-httparty-0.4.3 lib/httparty/response.rb
jnunemaker-httparty-0.4.4 lib/httparty/response.rb
kerryb-httparty-0.4.3 lib/httparty/response.rb
mfilej-httparty-0.4.3 lib/httparty/response.rb
nullstyle-httparty-0.4.4 lib/httparty/response.rb
kerryb-httparty-0.4.4 lib/httparty/response.rb
yyyc514-httparty-0.4.4.2 lib/httparty/response.rb
httparty-0.4.4 lib/httparty/response.rb
httparty-0.4.3 lib/httparty/response.rb