Class: FakeAWS::S3::Responses::Success

Inherits:
Object
  • Object
show all
Includes:
Common
Defined in:
lib/fake_aws/s3/responses/success.rb

Instance Method Summary collapse

Methods included from Common

#common_headers, #to_rack_response

Constructor Details

#initialize(headers, body) ⇒ Success

Returns a new instance of Success.



8
9
10
11
# File 'lib/fake_aws/s3/responses/success.rb', line 8

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

Instance Method Details

#bodyObject



21
22
23
# File 'lib/fake_aws/s3/responses/success.rb', line 21

def body
  @body
end

#headersObject



17
18
19
# File 'lib/fake_aws/s3/responses/success.rb', line 17

def headers
  common_headers.merge(@headers)
end

#status_codeObject



13
14
15
# File 'lib/fake_aws/s3/responses/success.rb', line 13

def status_code
  200
end