Class: Twilio::REST::Preview::TrustedComms::BrandedCallList
- Inherits:
-
ListResource
- Object
- ListResource
- Twilio::REST::Preview::TrustedComms::BrandedCallList
- Defined in:
- lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb
Overview
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].
Instance Method Summary collapse
-
#create(from: nil, to: nil, reason: nil) ⇒ BrandedCallInstance
Retrieve a single page of BrandedCallInstance records from the API.
-
#initialize(version) ⇒ BrandedCallList
constructor
Initialize the BrandedCallList.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version) ⇒ BrandedCallList
Initialize the BrandedCallList
20 21 22 23 24 25 26 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 20 def initialize(version) super(version) # Path Solution @solution = {} @uri = "/Business/BrandedCalls" end |
Instance Method Details
#create(from: nil, to: nil, reason: nil) ⇒ BrandedCallInstance
Retrieve a single page of BrandedCallInstance records from the API. Request is executed immediately.
40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 40 def create(from: nil, to: nil, reason: nil) data = Twilio::Values.of({'From' => from, 'To' => to, 'Reason' => reason, }) payload = @version.create( 'POST', @uri, data: data ) BrandedCallInstance.new(@version, payload, ) end |
#to_s ⇒ Object
Provide a user friendly representation
54 55 56 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 54 def to_s '#<Twilio.Preview.TrustedComms.BrandedCallList>' end |