lib/twilio-ruby/rest/insights/v1/room/participant.rb in twilio-ruby-6.9.1 vs lib/twilio-ruby/rest/insights/v1/room/participant.rb in twilio-ruby-6.11.0
- old
+ new
@@ -18,10 +18,11 @@
class Insights < InsightsBase
class V1 < Version
class RoomContext < InstanceContext
class ParticipantList < ListResource
+
##
# Initialize the ParticipantList
# @param [Version] version Version that contains the resource
# @return [ParticipantList] ParticipantList
def initialize(version, room_sid: nil)
@@ -146,9 +147,10 @@
##
# Fetch the ParticipantInstance
# @return [ParticipantInstance] Fetched ParticipantInstance
def fetch
+
payload = @version.fetch('GET', @uri)
ParticipantInstance.new(
@version,
payload,
room_sid: @solution[:room_sid],