lib/jira-profiler/team.rb
# Reference of employment dates for each team member
Reference of employment dates for each team member
Reference of employment dates for each team member
def load_employment_log(log_filepath)
      @employment_log = {}
      data = CSV.read(log_filepath, { encoding: "UTF-8", headers: true, header_converters: :symbol, converters: :all})
      data.each do |r|
        @employment_log[r[:who]] = {
            :started => r[:started],
            :stopped => r[:stopped],
            :range   => (r[:started]..r[:stopped]) 
        } unless @employment_log.has_key?(r[:who])
      end
    end
def load_employment_log ( log_filepath ) @employment_log = { } data = CSV . read ( log_filepath , { encoding : "UTF-8" , headers : true , header_converters : :symbol , converters : :all } ) data . each do | r | @employment_log [ r [ :who ] ] = { :started => r [ :started ] , :stopped => r [ :stopped ] , :range => ( r [ :started ] .. r [ :stopped ] ) } unless @employment_log . has_key? ( r [ :who ] ) end end
Reference of employment dates for each team member
Reference of employment dates for each team member
# Allows the use of the === comparison
log_filepath