Class: Twilio::REST::Message
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Message
- Defined in:
- lib/twilio-ruby/rest/messages.rb
Instance Method Summary collapse
-
#initialize(path, client, params = {}) ⇒ Message
constructor
A new instance of Message.
- #redact ⇒ Object
Methods inherited from InstanceResource
#delete, #inspect, #method_missing, #refresh, #update
Methods included from Utils
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
#redact ⇒ Object
16 17 18 |
# File 'lib/twilio-ruby/rest/messages.rb', line 16 def redact() update({body: ''}) end |