Module: Moiper::NotificationControllerHelper
- Defined in:
- lib/moiper/notification_controller_helper.rb
Instance Method Summary collapse
-
#moip_notification(data = params) {|notification| ... } ⇒ Notification
Helper method to abstract how to create a notification during the Moip’s NASP request.
Instance Method Details
#moip_notification(data = params) {|notification| ... } ⇒ Notification
Helper method to abstract how to create a notification during the Moip’s NASP request.
30 31 32 33 34 |
# File 'lib/moiper/notification_controller_helper.rb', line 30 def moip_notification(data = params, &block) notification = Notification.new(data) yield notification if block_given? notification end |