Sha256: 79edaa477402b8b17e09e477b21f27748eb231186a392b7eb2d7a8ea2f670ea8

Contents?: true

Size: 438 Bytes

Versions: 42

Compression:

Stored size: 438 Bytes

Contents

module Twilio
  module REST
    class Participants < ListResource
      def initialize(path, client)
        super
        # hard-code the json key since participants don't have sids
        @instance_id_key = 'call_sid'
      end
    end

    class Participant < InstanceResource
      def mute
        update muted: 'true'
      end

      def unmute
        update muted: 'false'
      end

      alias :kick :delete
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

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