compwron/pairSee

View on GitHub
lib/pair_see/active_devs.rb

Summary

Maintainability
A
0 mins
Test Coverage
module PairSee
  class ActiveDevs
    attr_reader :devs

    def initialize(log_lines, people)
      @log_lines = log_lines
      @devs = _active(people)
    end

    def _active(devs)
      devs.select do |dev|
        _is_active?(dev)
      end
    end

    def _is_active?(dev)
      @log_lines.active? dev
    end
  end
end