lib/time_attr_accessor.rb in nylas-2.0.1 vs lib/time_attr_accessor.rb in nylas-3.0.0

- old
+ new

@@ -1,12 +1,12 @@ -module Inbox +module Nylas module TimeAttrAccessor def time_attr_accessor(attr) parameter attr define_method "#{attr}=" do |value| if value instance_variable_set "@#{attr}", Time.at(value).utc end end end end -end \ No newline at end of file +end