Class: PairSee::PairCommitCount
- Inherits:
-
Object
- Object
- PairSee::PairCommitCount
- Defined in:
- lib/pair_see/pair_commit_count.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
readonly
Returns the value of attribute count.
-
#devs ⇒ Object
readonly
Returns the value of attribute devs.
Instance Method Summary collapse
- #empty? ⇒ Boolean
-
#initialize(count, *devs) ⇒ PairCommitCount
constructor
A new instance of PairCommitCount.
- #to_s ⇒ Object
Constructor Details
#initialize(count, *devs) ⇒ PairCommitCount
Returns a new instance of PairCommitCount.
5 6 7 8 |
# File 'lib/pair_see/pair_commit_count.rb', line 5 def initialize(count, *devs) @count = count @devs = devs end |
Instance Attribute Details
#count ⇒ Object (readonly)
Returns the value of attribute count.
3 4 5 |
# File 'lib/pair_see/pair_commit_count.rb', line 3 def count @count end |
#devs ⇒ Object (readonly)
Returns the value of attribute devs.
3 4 5 |
# File 'lib/pair_see/pair_commit_count.rb', line 3 def devs @devs end |
Instance Method Details
#empty? ⇒ Boolean
14 15 16 |
# File 'lib/pair_see/pair_commit_count.rb', line 14 def empty? count == 0 end |
#to_s ⇒ Object
10 11 12 |
# File 'lib/pair_see/pair_commit_count.rb', line 10 def to_s "#{devs.join ', '}: #{count}" end |