Class: WhatsAppCloudApi::Types::MediaMetadataResponse
- Inherits:
-
Object
- Object
- WhatsAppCloudApi::Types::MediaMetadataResponse
- Defined in:
- lib/whatsapp_cloud_api/types.rb
Instance Attribute Summary collapse
-
#file_size ⇒ Object
readonly
Returns the value of attribute file_size.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#messaging_product ⇒ Object
readonly
Returns the value of attribute messaging_product.
-
#mime_type ⇒ Object
readonly
Returns the value of attribute mime_type.
-
#sha256 ⇒ Object
readonly
Returns the value of attribute sha256.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(data) ⇒ MediaMetadataResponse
constructor
A new instance of MediaMetadataResponse.
Constructor Details
#initialize(data) ⇒ MediaMetadataResponse
Returns a new instance of MediaMetadataResponse.
61 62 63 64 65 66 67 68 |
# File 'lib/whatsapp_cloud_api/types.rb', line 61 def initialize(data) @messaging_product = data['messaging_product'] @url = data['url'] @mime_type = data['mime_type'] @sha256 = data['sha256'] @file_size = data['file_size'] @id = data['id'] end |
Instance Attribute Details
#file_size ⇒ Object (readonly)
Returns the value of attribute file_size.
59 60 61 |
# File 'lib/whatsapp_cloud_api/types.rb', line 59 def file_size @file_size end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
59 60 61 |
# File 'lib/whatsapp_cloud_api/types.rb', line 59 def id @id end |
#messaging_product ⇒ Object (readonly)
Returns the value of attribute messaging_product.
59 60 61 |
# File 'lib/whatsapp_cloud_api/types.rb', line 59 def messaging_product @messaging_product end |
#mime_type ⇒ Object (readonly)
Returns the value of attribute mime_type.
59 60 61 |
# File 'lib/whatsapp_cloud_api/types.rb', line 59 def mime_type @mime_type end |
#sha256 ⇒ Object (readonly)
Returns the value of attribute sha256.
59 60 61 |
# File 'lib/whatsapp_cloud_api/types.rb', line 59 def sha256 @sha256 end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
59 60 61 |
# File 'lib/whatsapp_cloud_api/types.rb', line 59 def url @url end |