class Twilio::REST::Video::V1::RoomContext::RecordingRulesPage

Public Class Methods

new(version, response, solution) click to toggle source

Initialize the RecordingRulesPage @param [Version] version Version that contains the resource @param [Response] response Response from the API @param [Hash] solution Path solution for the resource @return [RecordingRulesPage] RecordingRulesPage

Calls superclass method Twilio::REST::Page::new
   # File lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb
63 def initialize(version, response, solution)
64   super(version, response)
65 
66   # Path Solution
67   @solution = solution
68 end

Public Instance Methods

get_instance(payload) click to toggle source

Build an instance of RecordingRulesInstance @param [Hash] payload Payload response from the API @return [RecordingRulesInstance] RecordingRulesInstance

   # File lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb
74 def get_instance(payload)
75   RecordingRulesInstance.new(@version, payload, room_sid: @solution[:room_sid], )
76 end
to_s() click to toggle source

Provide a user friendly representation

   # File lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb
80 def to_s
81   '<Twilio.Video.V1.RecordingRulesPage>'
82 end