class PairSee::PairingEvent

Public Class Methods

new(current_person, most_recent_commits) click to toggle source
# File lib/pair_see/pairing_event.rb, line 3
def initialize(current_person, most_recent_commits)
  @current_person = current_person
  @most_recent_commits = most_recent_commits
end

Public Instance Methods

person() click to toggle source
# File lib/pair_see/pairing_event.rb, line 14
def person
  @current_person
end
pretty() click to toggle source
# File lib/pair_see/pairing_event.rb, line 8
def pretty
  @most_recent_commits.sort_by { |_pair, tuple| tuple.first.date }.map do |_pair, tuple|
    "#{@current_person}, #{tuple.last}: #{tuple.first.date}"
  end + _pretty_spacing
end

Private Instance Methods

_pretty_spacing() click to toggle source
# File lib/pair_see/pairing_event.rb, line 20
def _pretty_spacing
  ['']
end