class Grape::ServeStream::StreamResponse

A simple class used to identify responses which represent streams (or files) and do not need to be formatted or pre-read by Rack::Response

Attributes

stream[R]

Public Class Methods

new(stream) click to toggle source

@param stream [Object]

# File lib/grape/serve_stream/stream_response.rb, line 11
def initialize(stream)
  @stream = stream
end

Public Instance Methods

==(other) click to toggle source

Equality provided mostly for tests.

@return [Boolean]

# File lib/grape/serve_stream/stream_response.rb, line 18
def ==(other)
  stream == other.stream
end