Sha256: ad93b081f7673d0162e705294d8511948ec637873936f6d93bfa96262a052496
Contents?: true
Size: 581 Bytes
Versions: 24
Compression:
Stored size: 581 Bytes
Contents
module AWS module S3 class FakeResponse attr_reader :code, :body, :headers def initialize(options = {}) @code = options.delete(:code) || 200 @body = options.delete(:body) || '' @headers = {'content-type' => 'application/xml'}.merge(options.delete(:headers) || {}) end # For ErrorResponse def response body end def [](header) headers[header] end def each(&block) headers.each(&block) end alias_method :each_header, :each end end end
Version data entries
24 entries across 24 versions & 14 rubygems