Sha256: bf022e0b12fd246e9d168eea1d180699fe4fc6803eed5d0422b7143704f8e1e3

Contents?: true

Size: 443 Bytes

Versions: 10

Compression:

Stored size: 443 Bytes

Contents

module Twilio
  module REST
    class Participants < ListResource
      def initialize(uri, 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

10 entries across 10 versions & 1 rubygems

Version Path
twilio-ruby-3.9.0 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.8.0 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.7.1 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.7.0 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.6.0 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.5.1 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.5.0 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.4.2 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.4.1 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.4.0 lib/twilio-ruby/rest/conferences/participants.rb