lib/pair_see/card.rb in pair_see-0.1.0 vs lib/pair_see/card.rb in pair_see-0.1.1

- old
+ new

@@ -1,18 +1,20 @@ -class Card - attr_reader :card_name, :number_of_commits +module PairSee + class Card + attr_reader :card_name, :number_of_commits - def initialize(card_name, number_of_commits, first_date, last_date) - @card_name = card_name - @number_of_commits = number_of_commits - @first_date, @last_date = first_date, last_date - end + def initialize(card_name, number_of_commits, first_date, last_date) + @card_name = card_name + @number_of_commits = number_of_commits + @first_date, @last_date = first_date, last_date + end - def duration - (@first_date - @last_date).to_i + 1 - end + def duration + (@first_date - @last_date).to_i + 1 + end - def ==(other) - card_name == other.card_name - number_of_commits == other.number_of_commits - end + def ==(other) + card_name == other.card_name + number_of_commits == other.number_of_commits + end +end end