class Notifiable::NotificationStatus

Constants

DELIVERED_STATUS
OPENED_STATUS
REJECTED_STATUS
SENT_STATUS

Public Instance Methods

delivered!() click to toggle source
# File lib/notifiable/notification_status.rb, line 26
def delivered!
  update_attributes(status: DELIVERED_STATUS)
end
delivered?() click to toggle source
# File lib/notifiable/notification_status.rb, line 30
def delivered?
  status == DELIVERED_STATUS
end
opened!() click to toggle source
# File lib/notifiable/notification_status.rb, line 34
def opened!
  update_attributes(status: OPENED_STATUS)
end
opened?() click to toggle source
# File lib/notifiable/notification_status.rb, line 38
def opened?
  status == OPENED_STATUS
end
rejected!() click to toggle source
# File lib/notifiable/notification_status.rb, line 18
def rejected!
  update_attributes(status: REJECTED_STATUS)
end
sent!() click to toggle source
# File lib/notifiable/notification_status.rb, line 22
def sent!
  update_attributes(status: SENT_STATUS)
end