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-3.13.1 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.13.0 lib/twilio-ruby/rest/conferences/participants.rb