Class: Twilio::REST::Messaging::V2::TypingIndicatorList
- Inherits:
-
ListResource
- Object
- ListResource
- Twilio::REST::Messaging::V2::TypingIndicatorList
- Defined in:
- lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb
Instance Method Summary collapse
-
#create(channel: nil, message_id: nil) ⇒ TypingIndicatorInstance
Create the TypingIndicatorInstance.
-
#initialize(version) ⇒ TypingIndicatorList
constructor
Initialize the TypingIndicatorList.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version) ⇒ TypingIndicatorList
Initialize the TypingIndicatorList
26 27 28 29 30 31 32 |
# File 'lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb', line 26 def initialize(version) super(version) # Path Solution @solution = { } @uri = "/Indicators/Typing.json" end |
Instance Method Details
#create(channel: nil, message_id: nil) ⇒ TypingIndicatorInstance
Create the TypingIndicatorInstance
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb', line 38 def create( channel: nil, message_id: nil ) data = Twilio::Values.of({ 'channel' => channel, 'messageId' => , }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) payload = @version.create('POST', @uri, data: data, headers: headers) TypingIndicatorInstance.new( @version, payload, ) end |
#to_s ⇒ Object
Provide a user friendly representation
65 66 67 |
# File 'lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb', line 65 def to_s '#<Twilio.Messaging.V2.TypingIndicatorList>' end |