Class: InboxNotification
- Inherits:
-
NotificationDecorator
- Object
- NotificationDecorator
- InboxNotification
- Defined in:
- lib/bat_notifications.rb
Overview
end Review decorators configuration
Instance Method Summary collapse
-
#initialize(notification) ⇒ InboxNotification
constructor
A new instance of InboxNotification.
- #message ⇒ Object
Methods inherited from NotificationDecorator
#async_email, #get_action, #get_content, #get_receiver, #get_receiver_full_name, #get_sender, #get_sender_full_name, #send_email, #send_notification_to_receiver, #send_notification_to_sender
Constructor Details
#initialize(notification) ⇒ InboxNotification
Returns a new instance of InboxNotification.
233 234 235 236 237 |
# File 'lib/bat_notifications.rb', line 233 def initialize(notification) super(notification) @action = "Message" @subject = "New #{@action}" end |
Instance Method Details
#message ⇒ Object
238 239 240 241 |
# File 'lib/bat_notifications.rb', line 238 def return "<h1>You have a new #{@action} from #{get_sender_full_name}</h1>. <p><a href='localhost:3000/user/signin'>Login</a> to read</p>" end |