Class: BasicNotification

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

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) ⇒ BasicNotification

Returns a new instance of BasicNotification.



136
137
138
139
# File 'lib/bat_notifications.rb', line 136

def initialize(notification)
    super(notification)
    @action = "Basic"
end

Instance Method Details

#messageObject



140
141
142
# File 'lib/bat_notifications.rb', line 140

def message
    return "You have a new #{@action} from #{@sender}. Check out the details"
end