Method: FileHelper#file_params

Defined in:
lib/bearcat/client/file_helper.rb

#file_params(file_path) ⇒ Object



3
4
5
6
7
8
# File 'lib/bearcat/client/file_helper.rb', line 3

def file_params(file_path)
  {
    size: File.open(file_path).size,
    name: File.basename(file_path)
  }
end