Class: Rev::Notification
- Inherits:
-
ApiSerializable
- Object
- ApiSerializable
- Rev::Notification
- Defined in:
- lib/rev-api/models/order_request.rb
Overview
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.
Constant Summary collapse
- LEVELS =
Notification levels
{ :detailed => 'Detailed', :final_only => 'FinalOnly' }
Instance Attribute Summary collapse
-
#level ⇒ Object
readonly
Returns the value of attribute level.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, level = nil) ⇒ Notification
constructor
A new instance of Notification.
Methods inherited from ApiSerializable
Constructor Details
#initialize(url, level = nil) ⇒ Notification
Returns a new instance of Notification.
287 288 289 290 |
# File 'lib/rev-api/models/order_request.rb', line 287 def initialize(url, level = nil) @url = url @level = level ? level : LEVELS[:final_only] end |
Instance Attribute Details
#level ⇒ Object (readonly)
Returns the value of attribute level.
275 276 277 |
# File 'lib/rev-api/models/order_request.rb', line 275 def level @level end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
275 276 277 |
# File 'lib/rev-api/models/order_request.rb', line 275 def url @url end |