class RestClient::Payload::Streamed

Public Instance Methods

build_stream(params = nil) click to toggle source
# File lib/restclient/payload.rb, line 125
def build_stream(params = nil)
  @stream = params
end
length()
Alias for: size
size() click to toggle source
# File lib/restclient/payload.rb, line 129
def size
  if @stream.respond_to?(:size)
    @stream.size
  elsif @stream.is_a?(IO)
    @stream.stat.size
  end
end
Also aliased as: length