Permalink
Browse files

assign the list key for queues to be queue_members

  • Loading branch information...
1 parent def834b commit 9afcec242bc2dd4435000907972215bb88ece241 @andrewmbenton andrewmbenton committed Aug 8, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 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={})

0 comments on commit 9afcec2

Please sign in to comment.