def to_h
      PARAMETERS.each_with_object({}) do |param, hash|
        next if send(param).nil?

        hash[param] = send(param)
      end
    end
def to_h
      PARAMETERS.each_with_object({}) do |param, hash|
        next if send(param).nil?

        hash[param] = send(param)
      end
    end
Looks through the parameters and returns the non-nil values as a hash