Class: Redmine::Notifiable
- Inherits:
-
Struct
- Object
- Struct
- Redmine::Notifiable
- Defined in:
- lib/redmine/notifiable.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#parent ⇒ Object
Returns the value of attribute parent.
Class Method Summary collapse
-
.all ⇒ Object
TODO: Plugin API for adding a new notification?.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
21 22 23 |
# File 'lib/redmine/notifiable.rb', line 21 def name @name end |
#parent ⇒ Object
Returns the value of attribute parent
21 22 23 |
# File 'lib/redmine/notifiable.rb', line 21 def parent @parent end |
Class Method Details
.all ⇒ Object
TODO: Plugin API for adding a new notification?
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/redmine/notifiable.rb', line 27 def self.all notifications = [] notifications << Notifiable.new('issue_added') notifications << Notifiable.new('issue_updated') notifications << Notifiable.new('issue_note_added', 'issue_updated') notifications << Notifiable.new('issue_status_updated', 'issue_updated') notifications << Notifiable.new('issue_assigned_to_updated', 'issue_updated') notifications << Notifiable.new('issue_priority_updated', 'issue_updated') notifications << Notifiable.new('issue_fixed_version_updated', 'issue_updated') notifications << Notifiable.new('issue_attachment_added', 'issue_updated') notifications << Notifiable.new('news_added') notifications << Notifiable.new('news_comment_added') notifications << Notifiable.new('document_added') notifications << Notifiable.new('file_added') notifications << Notifiable.new('message_posted') notifications << Notifiable.new('wiki_content_added') notifications << Notifiable.new('wiki_content_updated') notifications end |
Instance Method Details
#to_s ⇒ Object
22 23 24 |
# File 'lib/redmine/notifiable.rb', line 22 def to_s name end |