Class: BasicNotification
- Inherits:
-
NotificationDecorator
- Object
- NotificationDecorator
- BasicNotification
- Defined in:
- lib/bat_notifications.rb
Instance Method Summary collapse
-
#initialize(notification) ⇒ BasicNotification
constructor
A new instance of BasicNotification.
- #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) ⇒ 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
#message ⇒ Object
140 141 142 |
# File 'lib/bat_notifications.rb', line 140 def return "You have a new #{@action} from #{@sender}. Check out the details" end |