Class: Morpheus::BodyIO
- Inherits:
-
Object
- Object
- Morpheus::BodyIO
- Extended by:
- Forwardable
- Defined in:
- lib/morpheus/api/body_io.rb
Overview
wrapper class for input stream so that HTTP doesn’t blow up when using it ie. calling size() and rewind()
Instance Method Summary collapse
-
#initialize(io) ⇒ BodyIO
constructor
A new instance of BodyIO.
- #rewind ⇒ Object
- #size ⇒ Object
Constructor Details
#initialize(io) ⇒ BodyIO
Returns a new instance of BodyIO.
8 9 10 |
# File 'lib/morpheus/api/body_io.rb', line 8 def initialize(io) @io = io end |
Instance Method Details
#rewind ⇒ Object
16 17 18 |
# File 'lib/morpheus/api/body_io.rb', line 16 def rewind nil end |
#size ⇒ Object
12 13 14 |
# File 'lib/morpheus/api/body_io.rb', line 12 def size 0 end |