class Arkaan::Account

A user account with all related attributes. It holds credentials and informations about a designated user. @author Vincent Courtois <courtois.vincent@outlook.com>

Public Instance Methods

read_notifications() click to toggle source

@return [Array<Arkaan::Notification>] the notifications already read byt the user.

# File lib/arkaan/account.rb, line 82
def read_notifications
  notifications.where(read: true)
end
unread_notifications() click to toggle source

@return [Array<Arkaan::Notification>] the unread notifications that should be displayed first for the user.

# File lib/arkaan/account.rb, line 77
def unread_notifications
  notifications.where(read: false)
end