Class RestClient::Payload::Streamed
In: lib/rest-client-1.6.3/lib/restclient/payload.rb
Parent: Base

Methods

build_stream   length   size  

Public Instance methods

[Source]

# File lib/rest-client-1.6.3/lib/restclient/payload.rb, line 110
      def build_stream(params = nil)
        @stream = params
      end
length()

Alias for size

[Source]

# File lib/rest-client-1.6.3/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

[Validate]