Class: Whatsapp::Webhook::Message::Video

Inherits:
Media
  • Object
show all
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

#initialize, media_attributes

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

Parameters:

  • data (Hash)

    The raw message hash.

Returns:



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