Class: WhatsAppCloudApi::Types::TemplateCreateResponse

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) ⇒ 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

#categoryObject (readonly)

Returns the value of attribute category.



93
94
95
# File 'lib/whatsapp_cloud_api/types.rb', line 93

def category
  @category
end

#idObject (readonly)

Returns the value of attribute id.



93
94
95
# File 'lib/whatsapp_cloud_api/types.rb', line 93

def id
  @id
end

#statusObject (readonly)

Returns the value of attribute status.



93
94
95
# File 'lib/whatsapp_cloud_api/types.rb', line 93

def status
  @status
end