Class: BusFactor::Result
- Inherits:
-
Struct
- Object
- Struct
- BusFactor::Result
- Defined in:
- lib/bus_factor.rb
Instance Attribute Summary collapse
-
#emails ⇒ Object
Returns the value of attribute emails.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#emails ⇒ Object
Returns the value of attribute emails
9 10 11 |
# File 'lib/bus_factor.rb', line 9 def emails @emails end |
#name ⇒ Object
Returns the value of attribute name
9 10 11 |
# File 'lib/bus_factor.rb', line 9 def name @name end |
Instance Method Details
#to_s(length_chars: 2, spec_chars: 15) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/bus_factor.rb', line 10 def to_s(length_chars: 2, spec_chars:15) fs = "%#{length_chars}s, %#{spec_chars}s: %s" format( fs, emails.length, name, emails.join(', ') ) end |