Exception: WhatsappSdk::Api::Templates::InvalidCategoryError
- Inherits:
-
StandardError
- Object
- StandardError
- WhatsappSdk::Api::Templates::InvalidCategoryError
- Defined in:
- lib/whatsapp_sdk/api/templates.rb
Instance Attribute Summary collapse
-
#category ⇒ Object
readonly
Returns the value of attribute category.
Instance Method Summary collapse
-
#initialize(category:) ⇒ InvalidCategoryError
constructor
A new instance of InvalidCategoryError.
Constructor Details
#initialize(category:) ⇒ InvalidCategoryError
Returns a new instance of InvalidCategoryError.
14 15 16 17 18 |
# File 'lib/whatsapp_sdk/api/templates.rb', line 14 def initialize(category:) @category = category super("Invalid Category. The possible values are: AUTHENTICATION, MARKETING and UTILITY.") end |
Instance Attribute Details
#category ⇒ Object (readonly)
Returns the value of attribute category.
12 13 14 |
# File 'lib/whatsapp_sdk/api/templates.rb', line 12 def category @category end |