Class: S3Light::Connection::Body
- Inherits:
-
Object
- Object
- S3Light::Connection::Body
- Defined in:
- lib/s3-light/connection/body.rb
Instance Attribute Summary collapse
-
#size ⇒ Object
readonly
Returns the value of attribute size.
Instance Method Summary collapse
-
#initialize(body) ⇒ Body
constructor
A new instance of Body.
- #read(length = nil, outbuf = nil) ⇒ Object
- #rewind ⇒ Object
Constructor Details
#initialize(body) ⇒ Body
Returns a new instance of Body.
6 7 8 9 10 11 |
# File 'lib/s3-light/connection/body.rb', line 6 def initialize(body) @body = body validate_body_type! @size = calculate_size @io = to_io end |
Instance Attribute Details
#size ⇒ Object (readonly)
Returns the value of attribute size.
13 14 15 |
# File 'lib/s3-light/connection/body.rb', line 13 def size @size end |