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.6.0.edge lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-4.5.0 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-4.4.0 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-4.3.0 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-4.2.1 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-4.2.0 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-4.1.0 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-4.0.1 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-4.0.0 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.16.1 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.16.0 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.15.2 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.15.1 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.15.0 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.14.5 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.14.4 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.14.3 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.14.2 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.14.1 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.14.0 lib/twilio-ruby/rest/conferences/participants.rb