class Twilio::REST::Video::V1::RoomContext::RecordingRulesInstance

Public Class Methods

new(version, payload, room_sid: nil) click to toggle source

Initialize the RecordingRulesInstance @param [Version] version Version that contains the resource @param [Hash] payload payload that contains response from Twilio @param [String] room_sid The SID of the Room resource for the Recording Rules @return [RecordingRulesInstance] RecordingRulesInstance

Calls superclass method Twilio::REST::InstanceResource::new
    # File lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb
 92 def initialize(version, payload, room_sid: nil)
 93   super(version)
 94 
 95   # Marshaled Properties
 96   @properties = {
 97       'room_sid' => payload['room_sid'],
 98       'rules' => payload['rules'],
 99       'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
100       'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
101   }
102 end

Public Instance Methods

date_created() click to toggle source

@return [Time] The ISO 8601 date and time in GMT when the resource was created

    # File lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb
118 def date_created
119   @properties['date_created']
120 end
date_updated() click to toggle source

@return [Time] The ISO 8601 date and time in GMT when the resource was last updated

    # File lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb
124 def date_updated
125   @properties['date_updated']
126 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb
136 def inspect
137   "<Twilio.Video.V1.RecordingRulesInstance>"
138 end
room_sid() click to toggle source

@return [String] The SID of the Room resource for the Recording Rules

    # File lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb
106 def room_sid
107   @properties['room_sid']
108 end
rules() click to toggle source

@return [Array] A collection of recording Rules that describe how to include or exclude matching tracks for recording

    # File lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb
112 def rules
113   @properties['rules']
114 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb
130 def to_s
131   "<Twilio.Video.V1.RecordingRulesInstance>"
132 end