lib/yao/resources/base.rb in yao-0.20.0 vs lib/yao/resources/base.rb in yao-0.21.0

- old
+ new

@@ -66,10 +66,11 @@ # @return [Symbol] def self.map_attributes_to_time(*names) names.map(&:to_s).each do |name| add_instantiation_name_list(name) define_method(name) do - Time.parse(self[name]) + time = self[name] + Time.parse(time) if time end end end # @param data_via_json [Hash]