Class: Twilio::REST::PreviewMessaging::V1::BroadcastList
- Inherits:
-
ListResource
- Object
- ListResource
- Twilio::REST::PreviewMessaging::V1::BroadcastList
- Defined in:
- lib/twilio-ruby/rest/preview_messaging/v1/broadcast.rb
Instance Method Summary collapse
-
#create(x_twilio_request_key: :unset) ⇒ BroadcastInstance
Create the BroadcastInstance.
-
#initialize(version) ⇒ BroadcastList
constructor
Initialize the BroadcastList.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version) ⇒ BroadcastList
Initialize the BroadcastList
26 27 28 29 30 31 32 |
# File 'lib/twilio-ruby/rest/preview_messaging/v1/broadcast.rb', line 26 def initialize(version) super(version) # Path Solution @solution = { } @uri = "/Broadcasts" end |
Instance Method Details
#create(x_twilio_request_key: :unset) ⇒ BroadcastInstance
Create the BroadcastInstance
37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/twilio-ruby/rest/preview_messaging/v1/broadcast.rb', line 37 def create( x_twilio_request_key: :unset ) headers = Twilio::Values.of({ 'X-Twilio-Request-Key' => x_twilio_request_key, }) payload = @version.create('POST', @uri, headers: headers) BroadcastInstance.new( @version, payload, ) end |
#to_s ⇒ Object
Provide a user friendly representation
54 55 56 |
# File 'lib/twilio-ruby/rest/preview_messaging/v1/broadcast.rb', line 54 def to_s '#<Twilio.PreviewMessaging.V1.BroadcastList>' end |