examples/examples.rb in twilio-ruby-5.0.0.rc25 vs examples/examples.rb in twilio-ruby-5.0.0.rc26

- old
+ new

@@ -28,14 +28,12 @@ @client.calls.list(limit: 10, start_time: '2010-09-01').each do |call| puts call.sid end # get a particular call and list its recording urls -@client.calls('CAXXXXXXX').fetch do |call| - call.recordings().each do |r| +@client.calls('CAXXXXXXX').recordings.each do |r| puts r.wav - end end # make a new outgoing call. returns a call object just like calls.get @call = @client.calls.create( from: '+14159341234', @@ -78,11 +76,11 @@ # get a list of supported country codes @client.available_phone_numbers.list # print some available numbers -@client.available_phone_numbers('US').local.list().each do |num| +@client.available_phone_numbers('US').local.list.each do |num| end @numbers = @client.available_phone_numbers('US').local.list(area_code: '908') @numbers.each { |num| puts num.phone_number } @@ -102,11 +100,11 @@ ################ CONFERENCES ################ # get a particular conference's participants object and stash it conference = @client.conferences('CFxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx').fetch -@participants = conference.participants() +@participants = conference.participants # list participants @participants.each do |p| puts p.sid end @@ -119,10 +117,10 @@ # create a new queue @queue = @client.queues.create(friendly_name: 'MyQueue', max_size: 50) # get a list of queues for this account -@queues = @client.queues.list() +@queues = @client.queues.list # get a particular queue and its members @queue = @client.queues('QQxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx').fetch @members = @queue.members \ No newline at end of file