Sha256: ec3870fddd5a819ffc8f164e44b01866206b76a85eea55fdfc85a75d01658f5c

Contents?: true

Size: 341 Bytes

Versions: 4

Compression:

Stored size: 341 Bytes

Contents

module HTTParty
  class Response < BlankSlate
    attr_accessor :body, :code, :headers

    def initialize(delegate, body, code, headers)
      @delegate = delegate
      @body = body
      @code = code
      @headers = headers
    end

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

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
jnunemaker-httparty-0.2.10 lib/httparty/response.rb
jnunemaker-httparty-0.2.9 lib/httparty/response.rb
httparty-0.2.10 lib/httparty/response.rb
httparty-0.2.9 lib/httparty/response.rb