Class: WhatsAppCloudApi::Types::MediaMetadataResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/whatsapp_cloud_api/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_sizeObject (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

#idObject (readonly)

Returns the value of attribute id.



59
60
61
# File 'lib/whatsapp_cloud_api/types.rb', line 59

def id
  @id
end

#messaging_productObject (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_typeObject (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

#sha256Object (readonly)

Returns the value of attribute sha256.



59
60
61
# File 'lib/whatsapp_cloud_api/types.rb', line 59

def sha256
  @sha256
end

#urlObject (readonly)

Returns the value of attribute url.



59
60
61
# File 'lib/whatsapp_cloud_api/types.rb', line 59

def url
  @url
end