Exception: WhatsappSdk::Api::Templates::InvalidCategoryError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/whatsapp_sdk/api/templates.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#categoryObject (readonly)

Returns the value of attribute category.



12
13
14
# File 'lib/whatsapp_sdk/api/templates.rb', line 12

def category
  @category
end