Module: ReviewNotificationDecorator
- Defined in:
- lib/ReviewNotificationDecorator.rb
Class Method Summary collapse
- .get_review_action ⇒ Object
- .get_review_content ⇒ Object
- .get_review_receiver ⇒ Object
- .get_review_sender ⇒ Object
- .get_user_review_notification ⇒ Object
- .get_user_review_notification_subject ⇒ Object
- .init_review_decorator ⇒ Object
- .send_notification ⇒ Object
- .set_action(action) ⇒ Object
- .set_content ⇒ Object
- .set_receiver ⇒ Object
- .set_sender ⇒ Object
- .user_send_notification ⇒ Object
Class Method Details
.get_review_action ⇒ Object
36 37 38 39 |
# File 'lib/ReviewNotificationDecorator.rb', line 36 def self.get_review_action init_review_decorator return @notification.get_action end |
.get_review_content ⇒ Object
41 42 43 44 45 46 |
# File 'lib/ReviewNotificationDecorator.rb', line 41 def self.get_review_content init_review_decorator content = @notification.get_content content_stars = content["review_stars"] return content_stars end |
.get_review_receiver ⇒ Object
53 54 55 56 |
# File 'lib/ReviewNotificationDecorator.rb', line 53 def self.get_review_receiver init_review_decorator return @notification.get_receiver["lastname"] end |
.get_review_sender ⇒ Object
48 49 50 51 |
# File 'lib/ReviewNotificationDecorator.rb', line 48 def self.get_review_sender init_review_decorator return @notification.get_sender["lastname"] end |
.get_user_review_notification ⇒ Object
63 64 65 66 |
# File 'lib/ReviewNotificationDecorator.rb', line 63 def self.get_user_review_notification init_review_decorator @notification = UserReviewNotification.new(@notification) end |
.get_user_review_notification_subject ⇒ Object
68 69 70 71 72 |
# File 'lib/ReviewNotificationDecorator.rb', line 68 def self.get_user_review_notification_subject init_review_decorator @notification = UserReviewNotification.new(@notification) return @notification.get_subject end |
.init_review_decorator ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/ReviewNotificationDecorator.rb', line 28 def self.init_review_decorator set_content set_sender set_receiver @notification = Notification.new(@sender, @receiver, @content) @notification = ReviewNotification.new(@notification) end |
.send_notification ⇒ Object
58 59 60 61 |
# File 'lib/ReviewNotificationDecorator.rb', line 58 def self.send_notification init_review_decorator return @notification.send_notification_to_receiver end |
.set_action(action) ⇒ Object
10 11 12 |
# File 'lib/ReviewNotificationDecorator.rb', line 10 def self.set_action(action) @action = action end |
.set_content ⇒ Object
15 16 17 |
# File 'lib/ReviewNotificationDecorator.rb', line 15 def self.set_content @content = Content.review_content end |
.set_receiver ⇒ Object
23 24 25 |
# File 'lib/ReviewNotificationDecorator.rb', line 23 def self.set_receiver @receiver = NotificationDb.get_receiver end |
.set_sender ⇒ Object
19 20 21 |
# File 'lib/ReviewNotificationDecorator.rb', line 19 def self.set_sender @sender = NotificationDb.get_sender end |
.user_send_notification ⇒ Object
74 75 76 77 78 |
# File 'lib/ReviewNotificationDecorator.rb', line 74 def self.user_send_notification init_review_decorator @notification = UserReviewNotification.new(@notification) return @notification.send_notification_to_sender end |