master
 1class Csv::Exercise
 2  attr_accessor :name, :weight_kg, :weight_lb
 3  attr_accessor :sets
 4
 5  def initialize(attributes = {})
 6    attributes.each do |attribute|
 7      send("#{attribute.first}=", attribute.last)
 8    end
 9  end
10
11  def matches?(exercise)
12    name.downcase == exercise.name&.downcase
13  end
14end