lib/keikokuc/notification.rb in keikokuc-0.3 vs lib/keikokuc/notification.rb in keikokuc-0.4
- old
+ new
@@ -4,21 +4,22 @@
#
# Examples
#
# notification = Keikokuc::Notification.new(message: 'hello',
# severity: 'info',
-# target: 'sunny-skies-42'
+# target_name: 'sunny-skies-42'
# producer_api_key: 'abcd')
# if notification.publish
# # persist notification
# else
# # handle error
# end
#
class Keikokuc::Notification
ATTRS = %w[message url severity
target_name account_email
- producer_api_key remote_id errors read_at].freeze
+ producer_api_key remote_id
+ errors read_at account_sequence].freeze
attr_accessor *ATTRS
# Public: Initialize a notification
#