lib/notifications/client/response_template.rb in notifications-ruby-client-2.4.0 vs lib/notifications/client/response_template.rb in notifications-ruby-client-2.5.0

- old
+ new

@@ -1,5 +1,7 @@ +require 'time' + module Notifications class Client class Template FIELDS = %i( id @@ -26,10 +28,10 @@ ).each do |field| define_method field do begin value = instance_variable_get(:"@#{field}") Time.parse value - rescue + rescue StandardError value end end end end