Sha256: 726b7c4c4239bedb47f9963e592da76ea5423286c367f8474e2e007e323e6813

Contents?: true

Size: 367 Bytes

Versions: 40

Compression:

Stored size: 367 Bytes

Contents

module Twilio
  module REST
    class Messages < ListResource
      def initialize(path, client)
        path.gsub! '/SMS', ''
        super
      end
    end

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

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

    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
twilio-ruby-4.13.0 lib/twilio-ruby/rest/messages.rb
twilio-ruby-4.12.1 lib/twilio-ruby/rest/messages.rb
twilio-ruby-4.11.1 lib/twilio-ruby/rest/messages.rb
twilio-ruby-4.11.0 lib/twilio-ruby/rest/messages.rb
twilio-ruby-4.10.0.edge lib/twilio-ruby/rest/messages.rb
twilio-ruby-4.10.0 lib/twilio-ruby/rest/messages.rb
twilio-ruby-4.9.1 lib/twilio-ruby/rest/messages.rb
twilio-ruby-4.9.1.edge lib/twilio-ruby/rest/messages.rb
twilio-ruby-4.9.0 lib/twilio-ruby/rest/messages.rb
twilio-ruby-4.9.0.edge lib/twilio-ruby/rest/messages.rb
twilio-ruby-4.8.0 lib/twilio-ruby/rest/messages.rb
twilio-ruby-4.7.0 lib/twilio-ruby/rest/messages.rb
twilio-ruby-4.8.3.edge lib/twilio-ruby/rest/messages.rb
twilio-ruby-4.8.2.edge lib/twilio-ruby/rest/messages.rb
twilio-ruby-4.8.1.edge lib/twilio-ruby/rest/messages.rb
twilio-ruby-4.8.0.edge lib/twilio-ruby/rest/messages.rb
twilio-ruby-4.6.2 lib/twilio-ruby/rest/messages.rb
twilio-ruby-4.6.1 lib/twilio-ruby/rest/messages.rb
twilio-ruby-4.6.0 lib/twilio-ruby/rest/messages.rb
twilio-ruby-4.7.0.edge lib/twilio-ruby/rest/messages.rb