Class: Api2Convert::Webhook::Event
- Inherits:
-
Object
- Object
- Api2Convert::Webhook::Event
- Defined in:
- lib/api2convert/webhook/event.rb
Overview
A verified webhook callback. The API posts the job whose status changed.
Instance Attribute Summary collapse
-
#job ⇒ Model::Job
readonly
The job whose status changed.
-
#payload ⇒ Hash
readonly
The full decoded callback body.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(job, payload) ⇒ Event
constructor
A new instance of Event.
Constructor Details
#initialize(job, payload) ⇒ Event
Returns a new instance of Event.
12 13 14 15 16 |
# File 'lib/api2convert/webhook/event.rb', line 12 def initialize(job, payload) @job = job @payload = payload freeze end |
Instance Attribute Details
#job ⇒ Model::Job (readonly)
Returns the job whose status changed.
8 9 10 |
# File 'lib/api2convert/webhook/event.rb', line 8 def job @job end |
#payload ⇒ Hash (readonly)
Returns the full decoded callback body.
10 11 12 |
# File 'lib/api2convert/webhook/event.rb', line 10 def payload @payload end |