Sha256: b7ff1dc1d211e5624eb6198e0bc25f343c4a0821574465db9060bfee7033a92a
Contents?: true
Size: 613 Bytes
Versions: 2
Compression:
Stored size: 613 Bytes
Contents
module Restcomm 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
restcomm-ruby-1.2.1 | lib/restcomm-ruby/rest/queues/members.rb |
restcomm-ruby-1.2.0 | lib/restcomm-ruby/rest/queues/members.rb |