module Mindee::Parsing::Common::ExecutionPriority

def self.to_priority(priority_str)

Returns:
  • (Symbol, nil) -

Parameters:
  • priority_str (String, nil) --
def self.to_priority(priority_str)
  return nil if priority_str.nil?
  case priority_str.downcase
  when 'low'
    :low
  when 'high'
    :high
  else
    :medium
  end
end