Class: FakeS3::Object::FakeObjectOutput

Inherits:
Object
  • Object
show all
Defined in:
lib/fake_s3/object.rb

Instance Method Summary collapse

Constructor Details

#initialize(body) ⇒ FakeObjectOutput

Returns a new instance of FakeObjectOutput.



51
52
53
# File 'lib/fake_s3/object.rb', line 51

def initialize(body)
  @body = body
end

Instance Method Details

#bodyObject



55
56
57
# File 'lib/fake_s3/object.rb', line 55

def body
  StringIO.new(@body)
end