Class: BAT_Notification

Inherits:
Object
  • Object
show all
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

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_contentObject

get content



20
21
22
# File 'lib/bat_notifications.rb', line 20

def get_content
    return @content
end

#get_receiverObject

get receiver information



30
31
32
# File 'lib/bat_notifications.rb', line 30

def get_receiver
    return @receiver
end

#get_senderObject

get sender information



25
26
27
# File 'lib/bat_notifications.rb', line 25

def get_sender
    return @sender
end