Class: WhatsAppCloudApi::Types::TemplateCreateResponse
- Inherits:
-
Object
- Object
- WhatsAppCloudApi::Types::TemplateCreateResponse
- Defined in:
- lib/whatsapp_cloud_api/types.rb
Instance Attribute Summary collapse
-
#category ⇒ Object
readonly
Returns the value of attribute category.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(data) ⇒ TemplateCreateResponse
constructor
A new instance of TemplateCreateResponse.
Constructor Details
#initialize(data) ⇒ TemplateCreateResponse
Returns a new instance of TemplateCreateResponse.
95 96 97 98 99 |
# File 'lib/whatsapp_cloud_api/types.rb', line 95 def initialize(data) @id = data['id'] @status = data['status'] @category = data['category'] end |
Instance Attribute Details
#category ⇒ Object (readonly)
Returns the value of attribute category.
93 94 95 |
# File 'lib/whatsapp_cloud_api/types.rb', line 93 def category @category end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
93 94 95 |
# File 'lib/whatsapp_cloud_api/types.rb', line 93 def id @id end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
93 94 95 |
# File 'lib/whatsapp_cloud_api/types.rb', line 93 def status @status end |