class Rev::Notification
Notification
Info. Optionally you may request that an HTTP post be made to a url of your choice when the order enters a new status (eg being transcribed or reviewed) and when it is complete.
Constants
- LEVELS
Notification
levels
Attributes
level[R]
url[R]
Public Class Methods
new(url, level = nil)
click to toggle source
@param url [String] The url for notifications. Mandatory if the notifications element is used. Updates will be posted to this URL @param level [String] Optional, specifies which notifications are sent:
- :detailed - a notification is sent whenever the order is in a new status or has a new comment - :final_only - (the default), notification is sent only when the order is complete
# File lib/rev-api/models/order_request.rb, line 287 def initialize(url, level = nil) @url = url @level = level ? level : LEVELS[:final_only] end