Sha256: fc305685397133b9df01ef0f9a4819057c3855a14fc1a7ff83a4fe124d8d45d9
Contents?: true
Size: 473 Bytes
Versions: 2
Compression:
Stored size: 473 Bytes
Contents
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 duration (@first_date - @last_date).to_i + 1 end def ==(other) card_name == other.card_name number_of_commits == other.number_of_commits end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pair_see-0.1.2 | lib/pair_see/card.rb |
pair_see-0.1.1 | lib/pair_see/card.rb |