lib/twilio-ruby/rest/video/v1/room.rb in twilio-ruby-6.9.1 vs lib/twilio-ruby/rest/video/v1/room.rb in twilio-ruby-6.11.0
- old
+ new
@@ -16,10 +16,11 @@
module Twilio
module REST
class Video < VideoBase
class V1 < Version
class RoomList < ListResource
+
##
# Initialize the RoomList
# @param [Version] version Version that contains the resource
# @return [RoomList] RoomList
def initialize(version)
@@ -81,10 +82,11 @@
'EmptyRoomTimeout' => empty_room_timeout,
'UnusedRoomTimeout' => unused_room_timeout,
'LargeRoom' => large_room,
})
+
payload = @version.create('POST', @uri, data: data)
RoomInstance.new(
@version,
payload,
)
@@ -229,10 +231,11 @@
##
# Fetch the RoomInstance
# @return [RoomInstance] Fetched RoomInstance
def fetch
+
payload = @version.fetch('GET', @uri)
RoomInstance.new(
@version,
payload,
sid: @solution[:sid],
@@ -249,9 +252,10 @@
data = Twilio::Values.of({
'Status' => status,
})
+
payload = @version.update('POST', @uri, data: data)
RoomInstance.new(
@version,
payload,
sid: @solution[:sid],