Class: Restcomm::REST::Message

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

Instance Method Summary collapse

Methods inherited from InstanceResource

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

Methods included from Utils

#derestify, #restify

Constructor Details

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

Returns a new instance of Message.



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

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 Restcomm::REST::InstanceResource

Instance Method Details

#redactObject



17
18
19
# File 'lib/restcomm-ruby/rest/messages.rb', line 17

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