Method: Gitlab::FileResponse#to_hash

Defined in:
lib/gitlab/file_response.rb

#to_hashHash Also known as: to_h

Returns A hash consisting of filename and io object.

Returns:

  • (Hash)

    A hash consisting of filename and io object

[View source]

20
21
22
# File 'lib/gitlab/file_response.rb', line 20

def to_hash
  { filename: @filename, data: @file }
end