docs/usage/conferences.rst in twilio-ruby-3.14.2 vs docs/usage/conferences.rst in twilio-ruby-3.14.3

- old
+ new

@@ -21,11 +21,11 @@ @client = Twilio::REST::Client.new account_sid, auth_token @conferences = @client.conferences.list() @conferences.each do |conference| - puts conference.sid + puts conference.sid end Filtering Conferences ----------------------- @@ -44,11 +44,11 @@ @client = Twilio::REST::Client.new account_sid, auth_token @conferences = @client.conferences.list(status: "in-progress") @conference.each do |conference| - puts conference.friendly_name + puts conference.friendly_name end Listing Participants ---------------------- @@ -65,11 +65,11 @@ @client = Twilio::REST::Client.new account_sid, auth_token @conference = @client.conferences.get("CF123") @conference.participants.list.each.do |paricipant| - puts participant.sid + puts participant.sid end :class:`Conferences` and :class:`Participants` are subclasses of :class:`ListResource`. Therefore, their instances have the inherited methods such as :meth:`count`. @@ -94,15 +94,15 @@ auth_token = "YYYYYYYYYYYYYYYYYY" @client = Twilio::REST::Client.new account_sid, auth_token @participants = @client.conferences.get("CF123").participants.list() - if @participants.empty? - return + return if @participants.empty? # Kick the first person out @participants.pop().kick() # And mute the rest @participants.each do |participant| - participant.mute() + participant.mute() + end