Method: Notification#finish_processing
- Defined in:
- lib/app/models/notification.rb
#finish_processing(processing_message = nil) ⇒ Object
Finish processing the notification successfully
101 102 103 104 105 106 107 |
# File 'lib/app/models/notification.rb', line 101 def finish_processing( = nil) if .present? set state: STATE_INVALID, error_message: else set state: STATE_PROCESSED, error_message: '' end end |