Sha256: bb26856a6a75277dc1b807a756b82f6e38452736afdb3252d792ed41a7520cec

Contents?: true

Size: 611 Bytes

Versions: 42

Compression:

Stored size: 611 Bytes

Contents

module Twilio
  module REST
    class Members < ListResource
      def initialize(path, client)
        super
        # hard-code the json keys since members are special
        @list_key, @instance_id_key = 'queue_members', 'call_sid'
      end

      def front
        @instance_class.new "#{@path}/Front", @client
      end

      def front!
        front.refresh
      end

      def dequeue(url, method='POST')
        front.dequeue url, method
      end
    end

    class Member < InstanceResource
      def dequeue(url, method='POST')
        update url: url, method: method
      end
    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/queues/members.rb
twilio-ruby-4.5.0 lib/twilio-ruby/rest/queues/members.rb
twilio-ruby-4.4.0 lib/twilio-ruby/rest/queues/members.rb
twilio-ruby-4.3.0 lib/twilio-ruby/rest/queues/members.rb
twilio-ruby-4.2.1 lib/twilio-ruby/rest/queues/members.rb
twilio-ruby-4.2.0 lib/twilio-ruby/rest/queues/members.rb
twilio-ruby-4.1.0 lib/twilio-ruby/rest/queues/members.rb
twilio-ruby-4.0.1 lib/twilio-ruby/rest/queues/members.rb
twilio-ruby-4.0.0 lib/twilio-ruby/rest/queues/members.rb
twilio-ruby-3.16.1 lib/twilio-ruby/rest/queues/members.rb
twilio-ruby-3.16.0 lib/twilio-ruby/rest/queues/members.rb
twilio-ruby-3.15.2 lib/twilio-ruby/rest/queues/members.rb
twilio-ruby-3.15.1 lib/twilio-ruby/rest/queues/members.rb
twilio-ruby-3.15.0 lib/twilio-ruby/rest/queues/members.rb
twilio-ruby-3.14.5 lib/twilio-ruby/rest/queues/members.rb
twilio-ruby-3.14.4 lib/twilio-ruby/rest/queues/members.rb
twilio-ruby-3.14.3 lib/twilio-ruby/rest/queues/members.rb
twilio-ruby-3.14.2 lib/twilio-ruby/rest/queues/members.rb
twilio-ruby-3.14.1 lib/twilio-ruby/rest/queues/members.rb
twilio-ruby-3.14.0 lib/twilio-ruby/rest/queues/members.rb