Exception: WhatsappSdk::Api::BusinessProfile::InvalidVertical

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(vertical:) ⇒ InvalidVertical



14
15
16
17
18
# File 'lib/whatsapp_sdk/api/business_profile.rb', line 14

def initialize(vertical:)
  @message = "invalid vertical #{vertical}. See the supported types in the official documentation " \
             "https://developers.facebook.com/docs/whatsapp/cloud-api/reference/business-profiles"
  super
end

Instance Attribute Details

#messageObject

Returns the value of attribute message.



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

def message
  @message
end