module Quovo::Refinements::ToTime
Public Instance Methods
to_time()
click to toggle source
# File lib/quovo/refinements/to_time.rb, line 5 def to_time case self when String Time.parse(self + ' UTC') when NilClass nil else raise "cannot convert #{inspect} to time" end end