Sha256: c3724d6714ba8fcbdc430af72843c7ed1ed8d6177d070dabac40589cbb73a84c
Contents?: true
Size: 296 Bytes
Versions: 5
Compression:
Stored size: 296 Bytes
Contents
class TimeInfoParser def initialize(time_element) @element = time_element end def parse if @element value = @element.text.strip.split[0].to_i unit_of_measure = @element.text.strip.split[1] end return TimeInfo.new(value, unit_of_measure) end end
Version data entries
5 entries across 5 versions & 1 rubygems