Sha256: deec98e9f3c25c1cd20bb7d44c160812c5090add35998d76c0a1ee91052c612c

Contents?: true

Size: 440 Bytes

Versions: 2

Compression:

Stored size: 440 Bytes

Contents

module Restcomm
  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

2 entries across 2 versions & 1 rubygems

Version Path
restcomm-ruby-1.2.1 lib/restcomm-ruby/rest/conferences/participants.rb
restcomm-ruby-1.2.0 lib/restcomm-ruby/rest/conferences/participants.rb