Class: TwilioBase::PhoneNumber
- Inherits:
-
Object
- Object
- TwilioBase::PhoneNumber
- Extended by:
- Clients
- Defined in:
- app/services/twilio_base/phone_number.rb
Constant Summary collapse
- COUNTRY_CODE =
ENV.fetch('COUNTRY_CODE')
Constants included from Clients
Clients::ACCOUNT_SID, Clients::AUTH_TOKEN
Class Method Summary collapse
Methods included from Clients
chat_client, config, rest_client, sms_client
Class Method Details
.find_or_create(phone_number) ⇒ Object
10 11 12 |
# File 'app/services/twilio_base/phone_number.rb', line 10 def find_or_create(phone_number) phone_number ? find(phone_number) : create end |
.incoming_phone_number_list(**args) ⇒ Object
14 15 16 |
# File 'app/services/twilio_base/phone_number.rb', line 14 def incoming_phone_number_list(**args) incoming_phone_numbers.list(args) end |