Class: BAT_Notification
- Inherits:
-
Object
- Object
- BAT_Notification
- Defined in:
- lib/bat_notifications.rb
Overview
concrete component to be decorated. we have a notification class that we will like to decorate based on action action include booking, review, inbox.
Instance Method Summary collapse
-
#get_content ⇒ Object
get content.
-
#get_receiver ⇒ Object
get receiver information.
-
#get_sender ⇒ Object
get sender information.
-
#initialize(sender, receiver, content) ⇒ BAT_Notification
constructor
A new instance of BAT_Notification.
Constructor Details
#initialize(sender, receiver, content) ⇒ BAT_Notification
Returns a new instance of BAT_Notification.
13 14 15 16 17 |
# File 'lib/bat_notifications.rb', line 13 def initialize(sender, receiver, content) @sender = sender @receiver = receiver @content = content end |
Instance Method Details
#get_content ⇒ Object
get content
20 21 22 |
# File 'lib/bat_notifications.rb', line 20 def get_content return @content end |
#get_receiver ⇒ Object
get receiver information
30 31 32 |
# File 'lib/bat_notifications.rb', line 30 def get_receiver return @receiver end |
#get_sender ⇒ Object
get sender information
25 26 27 |
# File 'lib/bat_notifications.rb', line 25 def get_sender return @sender end |