Class: TaskWarrior::PriorityMapper

Inherits:
Object
  • Object
show all
Defined in:
lib/twdeps/priority_mapper.rb

Class Method Summary collapse

Class Method Details

.map(json) ⇒ Object



4
5
6
# File 'lib/twdeps/priority_mapper.rb', line 4

def map(json)
  {'H' => :high, 'M' => :medium, 'L' => :low}[json]
end