class LinkedinV2::Files::Destroyer
Public Class Methods
call(file)
click to toggle source
file: File object
# File lib/linkedin_v2/files/destroyer.rb, line 5 def self.call(file) path_to_file = file.path File.delete(path_to_file) if File.exist?(path_to_file.to_s) end