Class: Windbag::Notification
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Windbag::Notification
- Defined in:
- app/models/windbag/notification.rb
Instance Method Summary collapse
Instance Method Details
#channel_name ⇒ Object
23 24 25 |
# File 'app/models/windbag/notification.rb', line 23 def channel_name self.channel.name if self.channel end |
#convert_transports ⇒ Object
19 20 21 |
# File 'app/models/windbag/notification.rb', line 19 def convert_transports self.transports = self.transports.map {|t| t.to_s} end |
#deliver ⇒ Object
13 14 15 16 17 |
# File 'app/models/windbag/notification.rb', line 13 def deliver self.transports.each do |transport| transport.constantize.with(self.id).deliver end end |