class CrewCheck::RoleDetermination

Public Class Methods

new(team_list, role_map) click to toggle source
# File lib/crew_check/role_determination.rb, line 3
def initialize(team_list, role_map)
  @team_list = team_list
  @role_map = role_map
end

Public Instance Methods

roles() click to toggle source
# File lib/crew_check/role_determination.rb, line 8
def roles
  unless @roles
    @roles = []
    @role_map.each do |role, team_list|
      @roles << role.downcase if !(team_list & @team_list).empty?
    end
  end

  @roles
end