Class: Bitmovin::Webhooks::EncodingErrorWebhook
- Inherits:
-
WebhookResource
- Object
- Resource
- WebhookResource
- Bitmovin::Webhooks::EncodingErrorWebhook
- Defined in:
- lib/bitmovin/webhooks/encoding_error_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 = {}) ⇒ EncodingErrorWebhook
constructor
A new instance of EncodingErrorWebhook.
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 = {}) ⇒ EncodingErrorWebhook
Returns a new instance of EncodingErrorWebhook.
4 5 6 7 8 9 10 11 12 |
# File 'lib/bitmovin/webhooks/encoding_error_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}/error") else hash = encoding_id end init_from_hash(hash) end |