Exception: WhatsAppCloudApi::Errors::KapsoProxyRequiredError
- Inherits:
-
StandardError
- Object
- StandardError
- WhatsAppCloudApi::Errors::KapsoProxyRequiredError
- Defined in:
- lib/whatsapp_cloud_api/errors.rb
Instance Attribute Summary collapse
-
#feature ⇒ Object
readonly
Returns the value of attribute feature.
-
#help_url ⇒ Object
readonly
Returns the value of attribute help_url.
Instance Method Summary collapse
-
#initialize(feature) ⇒ KapsoProxyRequiredError
constructor
A new instance of KapsoProxyRequiredError.
Constructor Details
#initialize(feature) ⇒ KapsoProxyRequiredError
Returns a new instance of KapsoProxyRequiredError.
316 317 318 319 320 321 322 323 324 |
# File 'lib/whatsapp_cloud_api/errors.rb', line 316 def initialize(feature) @feature = feature @help_url = 'https://kapso.ai/' = "#{feature} is only available via the Kapso Proxy. " \ "Set base_url to https://app.kapso.ai/api/meta and provide kapso_api_key. " \ "Create a free account at #{help_url}" super() end |
Instance Attribute Details
#feature ⇒ Object (readonly)
Returns the value of attribute feature.
314 315 316 |
# File 'lib/whatsapp_cloud_api/errors.rb', line 314 def feature @feature end |
#help_url ⇒ Object (readonly)
Returns the value of attribute help_url.
314 315 316 |
# File 'lib/whatsapp_cloud_api/errors.rb', line 314 def help_url @help_url end |