RestClient::Payload::Streamed

Public Instance Methods

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.