Class: PairSee::CardsPerPerson
- Inherits:
-
Object
- Object
- PairSee::CardsPerPerson
- Defined in:
- lib/pair_see/cards_per_person.rb
Instance Attribute Summary collapse
-
#cards_per_person ⇒ Object
readonly
Returns the value of attribute cards_per_person.
-
#dev_pairs ⇒ Object
readonly
Returns the value of attribute dev_pairs.
-
#people ⇒ Object
readonly
Returns the value of attribute people.
Instance Method Summary collapse
-
#initialize(log_lines, card_prefix, people) ⇒ CardsPerPerson
constructor
A new instance of CardsPerPerson.
Constructor Details
#initialize(log_lines, card_prefix, people) ⇒ CardsPerPerson
Returns a new instance of CardsPerPerson.
5 6 7 8 9 |
# File 'lib/pair_see/cards_per_person.rb', line 5 def initialize(log_lines, card_prefix, people) @people = _active(people, log_lines) @cards_per_person = _cards_per_person(log_lines, card_prefix) @dev_pairs = @people.combination(2) end |
Instance Attribute Details
#cards_per_person ⇒ Object (readonly)
Returns the value of attribute cards_per_person.
3 4 5 |
# File 'lib/pair_see/cards_per_person.rb', line 3 def cards_per_person @cards_per_person end |
#dev_pairs ⇒ Object (readonly)
Returns the value of attribute dev_pairs.
3 4 5 |
# File 'lib/pair_see/cards_per_person.rb', line 3 def dev_pairs @dev_pairs end |
#people ⇒ Object (readonly)
Returns the value of attribute people.
3 4 5 |
# File 'lib/pair_see/cards_per_person.rb', line 3 def people @people end |