class Grape::ServeFile::FileResponse

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

Attributes

file[R]

Public Class Methods

new(file) click to toggle source

@param file [Object]

# File lib/grape/serve_file/file_response.rb, line 9
def initialize(file)
  @file = file
end

Public Instance Methods

==(other) click to toggle source

Equality provided mostly for tests.

@return [Boolean]

# File lib/grape/serve_file/file_response.rb, line 16
def ==(other)
  file == other.file
end