Class: WhatsAppCloudApi::Types::MessageTemplate
- Inherits:
-
Object
- Object
- WhatsAppCloudApi::Types::MessageTemplate
- Defined in:
- lib/whatsapp_cloud_api/types.rb
Overview
Template structures
Instance Attribute Summary collapse
-
#category ⇒ Object
readonly
Returns the value of attribute category.
-
#components ⇒ Object
readonly
Returns the value of attribute components.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#language ⇒ Object
readonly
Returns the value of attribute language.
-
#last_updated_time ⇒ Object
readonly
Returns the value of attribute last_updated_time.
-
#library_template_name ⇒ Object
readonly
Returns the value of attribute library_template_name.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#previous_category ⇒ Object
readonly
Returns the value of attribute previous_category.
-
#quality_score_category ⇒ Object
readonly
Returns the value of attribute quality_score_category.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#warnings ⇒ Object
readonly
Returns the value of attribute warnings.
Instance Method Summary collapse
-
#initialize(data) ⇒ MessageTemplate
constructor
A new instance of MessageTemplate.
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
#category ⇒ Object (readonly)
Returns the value of attribute category.
73 74 75 |
# File 'lib/whatsapp_cloud_api/types.rb', line 73 def category @category end |
#components ⇒ Object (readonly)
Returns the value of attribute components.
73 74 75 |
# File 'lib/whatsapp_cloud_api/types.rb', line 73 def components @components end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
73 74 75 |
# File 'lib/whatsapp_cloud_api/types.rb', line 73 def id @id end |
#language ⇒ Object (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_time ⇒ Object (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_name ⇒ Object (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 |
#name ⇒ Object (readonly)
Returns the value of attribute name.
73 74 75 |
# File 'lib/whatsapp_cloud_api/types.rb', line 73 def name @name end |
#previous_category ⇒ Object (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_category ⇒ Object (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 |
#status ⇒ Object (readonly)
Returns the value of attribute status.
73 74 75 |
# File 'lib/whatsapp_cloud_api/types.rb', line 73 def status @status end |
#warnings ⇒ Object (readonly)
Returns the value of attribute warnings.
73 74 75 |
# File 'lib/whatsapp_cloud_api/types.rb', line 73 def warnings @warnings end |