Class: FakeAWS::S3::Responses::Success
- Inherits:
-
Object
- Object
- FakeAWS::S3::Responses::Success
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(, body)
@headers =
@body = body
end
|
Instance Method Details
#body ⇒ Object
21
22
23
|
# File 'lib/fake_aws/s3/responses/success.rb', line 21
def body
@body
end
|
17
18
19
|
# File 'lib/fake_aws/s3/responses/success.rb', line 17
def
.merge(@headers)
end
|
#status_code ⇒ Object
13
14
15
|
# File 'lib/fake_aws/s3/responses/success.rb', line 13
def status_code
200
end
|