Method: TimeDistribution::Task.from_map
- Defined in:
- lib/time_distribution/task.rb
.from_map(map_data) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/time_distribution/task.rb', line 7 def self.from_map(map_data) self.new( map_data['subject'].to_sym, map_data['duration'], map_data['description'] ) end |