Class: Timetrack::Transform Private
- Inherits:
-
Parslet::Transform
- Object
- Parslet::Transform
- Timetrack::Transform
- Defined in:
- lib/timetrack/transform.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Transform a deeply-nested hash into a rich object graph
Defined Under Namespace
Classes: UnassociatedEvent, UnassociatedTime
Class Method Summary collapse
- .parse_time(string) ⇒ Object private
Class Method Details
.parse_time(string) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
5 6 7 8 |
# File 'lib/timetrack/transform.rb', line 5 def self.parse_time(string) hour, minute = string.split(':').map(&:to_i) UnassociatedTime.new hour: hour, minute: minute end |