lib/twilio-ruby/rest/video/v1/room.rb in twilio-ruby-5.41.0 vs lib/twilio-ruby/rest/video/v1/room.rb in twilio-ruby-5.42.0

- old
+ new

@@ -242,10 +242,11 @@ @uri = "/Rooms/#{@solution[:sid]}" # Dependents @recordings = nil @participants = nil + @recording_rules = nil end ## # Fetch the RoomInstance # @return [RoomInstance] Fetched RoomInstance @@ -303,10 +304,22 @@ @participants end ## + # Access the recording_rules + # @return [RecordingRulesList] + # @return [RecordingRulesContext] + def recording_rules + unless @recording_rules + @recording_rules = RecordingRulesList.new(@version, room_sid: @solution[:sid], ) + end + + @recording_rules + end + + ## # Provide a user friendly representation def to_s context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Video.V1.RoomContext #{context}>" end @@ -501,9 +514,16 @@ ## # Access the participants # @return [participants] participants def participants context.participants + end + + ## + # Access the recording_rules + # @return [recording_rules] recording_rules + def recording_rules + context.recording_rules end ## # Provide a user friendly representation def to_s \ No newline at end of file