Sha256: bfa72b31cb3e2476a82832a182289b67b167eb7f9a4ab48ecd9f699875349581
Contents?: true
Size: 384 Bytes
Versions: 3
Compression:
Stored size: 384 Bytes
Contents
module HTTParty class Response < BlankSlate #:nodoc: attr_accessor :body, :code, :headers attr_reader :delegate def initialize(delegate, body, code, headers={}) @delegate = delegate @body = body @code = code.to_i @headers = headers end def method_missing(name, *args, &block) @delegate.send(name, *args, &block) end end end
Version data entries
3 entries across 3 versions & 3 rubygems
Version | Path |
---|---|
cluon-httparty-0.4.3 | lib/httparty/response.rb |
jnunemaker-httparty-0.4.2 | lib/httparty/response.rb |
httparty-0.4.2 | lib/httparty/response.rb |