class Grape::ServeStream::FileBody
Class helps send file through API
def ==(other)
def ==(other) path == other.path end
def each
def each File.open(path, 'rb') do |file| while (chunk = file.read(CHUNK_SIZE)) yield chunk end end end
def initialize(path)
-
path
(String
) --
def initialize(path) @path = path end
def to_path
-
(String)
-
def to_path path end