Class: Bitmovin::Webhooks::EncodingFinishedWebhook
- Inherits:
-
WebhookResource
- Object
- Resource
- WebhookResource
- Bitmovin::Webhooks::EncodingFinishedWebhook
- Defined in:
- lib/bitmovin/webhooks/encoding_finished_webhook.rb
Instance Attribute Summary
Attributes inherited from WebhookResource
#encryption, #id, #insecure_ssl, #method, #signature, #url
Attributes inherited from Resource
#created_at, #description, #id, #modified_at, #name
Instance Method Summary collapse
-
#initialize(encoding_id = {}, hash = {}) ⇒ EncodingFinishedWebhook
constructor
A new instance of EncodingFinishedWebhook.
Methods inherited from Resource
#delete!, find, init, #init_instance, #inspect, list, #persisted?, #save!
Methods included from Helpers
#camelize_hash, #hash_to_struct, result, #result, #underscore_hash
Constructor Details
#initialize(encoding_id = {}, hash = {}) ⇒ EncodingFinishedWebhook
Returns a new instance of EncodingFinishedWebhook.
4 5 6 7 8 9 10 11 12 |
# File 'lib/bitmovin/webhooks/encoding_finished_webhook.rb', line 4 def initialize(encoding_id = {}, hash = {}) if encoding_id.kind_of?(String) @encoding_id = encoding_id init_instance("notifications/webhooks/encoding/encodings/#{encoding_id}/finished") else hash = encoding_id end init_from_hash(hash) end |