Class: Twilio::REST::Message

Inherits:
InstanceResource show all
Defined in:
lib/twilio-ruby/rest/messages.rb

Instance Method Summary collapse

Methods inherited from InstanceResource

#delete, #inspect, #method_missing, #refresh, #update

Methods included from Utils

#detwilify, #twilify

Constructor Details

#initialize(path, client, params = {}) ⇒ Message

Returns a new instance of Message.



11
12
13
14
# File 'lib/twilio-ruby/rest/messages.rb', line 11

def initialize(path, client, params={})
  super
  resource :media
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Twilio::REST::InstanceResource

Instance Method Details

#redactObject



16
17
18
# File 'lib/twilio-ruby/rest/messages.rb', line 16

def redact()
  update({body: ''})
end