Class: RestClient::Payload::Streamed

### Home Classes Methods

### In Files

- lib/restclient/payload.rb

### Parent

RestClient::Payload::Base

### Methods

- #build_stream
- #length
- #size

### Class/Module Index

Quicksearch

- RestClient
- RestClient::AbstractResponse
- RestClient::Exception
- RestClient::ExceptionWithResponse
- RestClient::Exceptions
- RestClient::MaxRedirectsReached
- RestClient::Payload
- RestClient::Payload::Base
- RestClient::Payload::Multipart
- RestClient::Payload::Streamed
- RestClient::Payload::UrlEncoded
- RestClient::Platform
- RestClient::RawResponse
- RestClient::Redirect
- RestClient::Request
- RestClient::Request::Redirect
- RestClient::Request::RequestFailed
- RestClient::RequestFailed
- RestClient::Resource
- RestClient::Response
- RestClient::ResponseForException
- RestClient::SSLCertificateNotVerified
- RestClient::ServerBrokeConnection
- RestClient::Windows
- RestClient::Windows::RootCerts
- RestClient::Windows::RootCerts::CERT_CONTEXT

No matching classes.

# 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() click to toggle source
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

[Validate]

Generated with the Darkfish Rdoc Generator 2.