Sha256: e7b541ba263b047f0d59ae6542ee3ebfcb57f830d9b208ee71ab08864158b0f1
Contents?: true
Size: 426 Bytes
Versions: 1
Compression:
Stored size: 426 Bytes
Contents
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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pair_see-0.1.0 | lib/pair_see/card.rb |