Class: WhatsAppCloudApi::Types::MessageTemplate

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

Overview

Template structures

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ MessageTemplate

Returns a new instance of MessageTemplate.



77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/whatsapp_cloud_api/types.rb', line 77

def initialize(data)
  @id = data['id']
  @name = data['name']
  @category = data['category']
  @language = data['language']
  @status = data['status']
  @components = data['components']
  @quality_score_category = data['quality_score_category']
  @warnings = data['warnings']
  @previous_category = data['previous_category']
  @library_template_name = data['library_template_name']
  @last_updated_time = data['last_updated_time']
end

Instance Attribute Details

#categoryObject (readonly)

Returns the value of attribute category.



73
74
75
# File 'lib/whatsapp_cloud_api/types.rb', line 73

def category
  @category
end

#componentsObject (readonly)

Returns the value of attribute components.



73
74
75
# File 'lib/whatsapp_cloud_api/types.rb', line 73

def components
  @components
end

#idObject (readonly)

Returns the value of attribute id.



73
74
75
# File 'lib/whatsapp_cloud_api/types.rb', line 73

def id
  @id
end

#languageObject (readonly)

Returns the value of attribute language.



73
74
75
# File 'lib/whatsapp_cloud_api/types.rb', line 73

def language
  @language
end

#last_updated_timeObject (readonly)

Returns the value of attribute last_updated_time.



73
74
75
# File 'lib/whatsapp_cloud_api/types.rb', line 73

def last_updated_time
  @last_updated_time
end

#library_template_nameObject (readonly)

Returns the value of attribute library_template_name.



73
74
75
# File 'lib/whatsapp_cloud_api/types.rb', line 73

def library_template_name
  @library_template_name
end

#nameObject (readonly)

Returns the value of attribute name.



73
74
75
# File 'lib/whatsapp_cloud_api/types.rb', line 73

def name
  @name
end

#previous_categoryObject (readonly)

Returns the value of attribute previous_category.



73
74
75
# File 'lib/whatsapp_cloud_api/types.rb', line 73

def previous_category
  @previous_category
end

#quality_score_categoryObject (readonly)

Returns the value of attribute quality_score_category.



73
74
75
# File 'lib/whatsapp_cloud_api/types.rb', line 73

def quality_score_category
  @quality_score_category
end

#statusObject (readonly)

Returns the value of attribute status.



73
74
75
# File 'lib/whatsapp_cloud_api/types.rb', line 73

def status
  @status
end

#warningsObject (readonly)

Returns the value of attribute warnings.



73
74
75
# File 'lib/whatsapp_cloud_api/types.rb', line 73

def warnings
  @warnings
end