Class: InboxNotification

Inherits:
NotificationDecorator show all
Defined in:
lib/bat_notifications.rb

Overview

end Review decorators configuration

Instance Method Summary collapse

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

#messageObject



238
239
240
241
# File 'lib/bat_notifications.rb', line 238

def message
    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