Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

assign the list key for queues to be queue_members

  • Loading branch information...
commit 9afcec242bc2dd4435000907972215bb88ece241 1 parent def834b
@andrewmbenton andrewmbenton authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/twilio-ruby/rest/queues.rb
View
8 lib/twilio-ruby/rest/queues.rb
@@ -1,6 +1,12 @@
module Twilio
module REST
- class Queues < ListResource; end
+ class Queues < ListResource
+ def initialize(uri, client)
+ super
+ # hard-code the json key since 'members' doesn't exist in the response
+ @list_key = 'queue_members'
+ end
+ end
class Queue < InstanceResource
def initialize(uri, client, params={})
Please sign in to comment.
Something went wrong with that request. Please try again.