Module: BasicNotificationDecorator

Defined in:
lib/BasicNotificationDecorator.rb

Class Method Summary collapse

Class Method Details

.get_basic_notification_actionObject



16
17
18
19
# File 'lib/BasicNotificationDecorator.rb', line 16

def self.get_basic_notification_action
    init_basic_decorator
    return @basicNotification.get_action
end

.get_basic_notification_baseObject



36
37
38
39
# File 'lib/BasicNotificationDecorator.rb', line 36

def self.get_basic_notification_base
    init_basic_decorator
    return @basicNotification.get_notification_base
end

.get_basic_notification_contentObject



31
32
33
34
# File 'lib/BasicNotificationDecorator.rb', line 31

def self.get_basic_notification_content
    init_basic_decorator
    return @basicNotification.get_content
end

.get_basic_notification_receiverObject



26
27
28
29
# File 'lib/BasicNotificationDecorator.rb', line 26

def self.get_basic_notification_receiver
    init_basic_decorator
    return @basicNotification.get_receiver
end

.get_basic_notification_senderObject



21
22
23
24
# File 'lib/BasicNotificationDecorator.rb', line 21

def self.get_basic_notification_sender
    init_basic_decorator
    return @basicNotification.get_sender
end

.init_basic_decoratorObject



10
11
12
13
# File 'lib/BasicNotificationDecorator.rb', line 10

def self.init_basic_decorator
    set_action("Basic Notification")
    @basicNotification = BasicNotification.new(@action, "Sender", "Receiver", "Message" )
end

.set_action(action) ⇒ Object



6
7
8
# File 'lib/BasicNotificationDecorator.rb', line 6

def self.set_action(action)
    @action = action
end