Class: Whatsapp::Webhook::Message::Video
- Defined in:
- lib/ruby/whatsapp/webhook/message/video.rb
Overview
An inbound video message.
Instance Attribute Summary
Attributes inherited from Media
#caption, #media_id, #mime_type, #sha256
Attributes inherited from Base
#context, #from, #id, #referral, #timestamp, #type
Class Method Summary collapse
Methods inherited from Media
Methods inherited from Base
common_attributes, #initialize
Constructor Details
This class inherits a constructor from Whatsapp::Webhook::Message::Media
Class Method Details
.deserialize(data) ⇒ Video
11 12 13 |
# File 'lib/ruby/whatsapp/webhook/message/video.rb', line 11 def deserialize(data) new(**media_attributes(data, "video"), **common_attributes(data)) end |