Class: Telnyx::Resources::Whatsapp
- Inherits:
-
Object
- Object
- Telnyx::Resources::Whatsapp
- Defined in:
- lib/telnyx/resources/whatsapp.rb,
lib/telnyx/resources/whatsapp/templates.rb,
lib/telnyx/resources/whatsapp/phone_numbers.rb,
lib/telnyx/resources/whatsapp/business_accounts.rb,
lib/telnyx/resources/whatsapp/phone_numbers/profile.rb,
lib/telnyx/resources/whatsapp/business_accounts/settings.rb,
lib/telnyx/resources/whatsapp/phone_numbers/profile/photo.rb,
lib/telnyx/resources/whatsapp/phone_numbers/calling_settings.rb,
lib/telnyx/resources/whatsapp/business_accounts/phone_numbers.rb
Defined Under Namespace
Classes: BusinessAccounts, PhoneNumbers, Templates
Instance Attribute Summary collapse
-
#business_accounts ⇒ Telnyx::Resources::Whatsapp::BusinessAccounts
readonly
Manage Whatsapp business accounts.
-
#phone_numbers ⇒ Telnyx::Resources::Whatsapp::PhoneNumbers
readonly
Manage Whatsapp phone numbers.
-
#templates ⇒ Telnyx::Resources::Whatsapp::Templates
readonly
Manage Whatsapp message templates.
Instance Method Summary collapse
-
#initialize(client:) ⇒ Whatsapp
constructor
private
A new instance of Whatsapp.
Constructor Details
#initialize(client:) ⇒ Whatsapp
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Whatsapp.
21 22 23 24 25 26 |
# File 'lib/telnyx/resources/whatsapp.rb', line 21 def initialize(client:) @client = client @business_accounts = Telnyx::Resources::Whatsapp::BusinessAccounts.new(client: client) @templates = Telnyx::Resources::Whatsapp::Templates.new(client: client) @phone_numbers = Telnyx::Resources::Whatsapp::PhoneNumbers.new(client: client) end |
Instance Attribute Details
#business_accounts ⇒ Telnyx::Resources::Whatsapp::BusinessAccounts (readonly)
Manage Whatsapp business accounts
8 9 10 |
# File 'lib/telnyx/resources/whatsapp.rb', line 8 def business_accounts @business_accounts end |
#phone_numbers ⇒ Telnyx::Resources::Whatsapp::PhoneNumbers (readonly)
Manage Whatsapp phone numbers
16 17 18 |
# File 'lib/telnyx/resources/whatsapp.rb', line 16 def phone_numbers @phone_numbers end |
#templates ⇒ Telnyx::Resources::Whatsapp::Templates (readonly)
Manage Whatsapp message templates
12 13 14 |
# File 'lib/telnyx/resources/whatsapp.rb', line 12 def templates @templates end |