class Umwelt::Phase::Mapper

Public Instance Methods

call(data) click to toggle source
# File lib/umwelt/phase/mapper.rb, line 7
def call(data)
  @struct = fill(
    Struct::Phase,
    data.merge(finished_at: time(data[:finished_at]))
  )
end
time(str) click to toggle source
# File lib/umwelt/phase/mapper.rb, line 14
def time(str)
  Time.parse str if str
end