Class: Morpheus::BodyIO

Inherits:
Object
  • Object
show all
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

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

#rewindObject



16
17
18
# File 'lib/morpheus/api/body_io.rb', line 16

def rewind
  nil
end

#sizeObject



12
13
14
# File 'lib/morpheus/api/body_io.rb', line 12

def size
  0
end