Sha256: a575917da8155fdb592ad21647927397adf1c5c2caf5f6d6ea819c57c33a3022

Contents?: true

Size: 444 Bytes

Versions: 12

Compression:

Stored size: 444 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

12 entries across 12 versions & 1 rubygems

Version Path
twilio-ruby-3.12.3 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.12.2 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.12.1 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.12.0 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.11.6 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.11.5 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.11.4 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.11.3 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.11.1 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.11.0 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.10.1 lib/twilio-ruby/rest/conferences/participants.rb
twilio-ruby-3.10.0 lib/twilio-ruby/rest/conferences/participants.rb