class Utils
Class with helper functions
Public Class Methods
read_file_to_b64(path)
click to toggle source
# File lib/belvo/utils.rb, line 7 def self.read_file_to_b64(path) return if path.nil? || !File.file?(path) data = File.open(path).read Base64.encode64(data) end