gguf-provider
 1# frozen_string_literal: true
 2
 3require "csv"
 4
 5class App
 6  def initialize(path = "data/report.csv")
 7    @path = path
 8  end
 9
10  def rows
11    CSV.read(@path, headers: true)
12  end
13
14  def total
15    rows.sum { |row| row["cents"].to_i }
16  end
17end