require 'time' module Capgun module Creatable # Time when the object was created # # @return [Time] def created_at @created_at ||= Time.parse(@attrs['created_at']) unless @attrs['created_at'].nil? end # Time when the object was updated # # @return [Time] def updated_at @updated_at ||= Time.parse(@attrs['updated_at']) unless @attrs['updated_at'].nil? end end end