Class: Twilio::REST::Video::V1::RoomContext::RecordingRulesInstance

Inherits:
InstanceResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/video/v1/room/recording_rules.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, room_sid: nil) ⇒ RecordingRulesInstance

Initialize the RecordingRulesInstance

Parameters:

  • version (Version) —

    Version that contains the resource

  • payload (Hash) —

    payload that contains response from Twilio

  • account_sid (String) —

    The SID of the Account that created this RecordingRules resource.

  • sid (String) —

    The SID of the Call resource to fetch.



246
247
248
249
250
251
252
253
254
255
256
257
# File 'lib/twilio-ruby/rest/video/v1/room/recording_rules.rb', line 246

def initialize(version, payload , room_sid: nil)
    super(version)
    
    
    # Marshaled Properties
    @properties = { 
        'room_sid' => payload['room_sid'],
        'rules' => payload['rules'],
        'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
        'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
    }
end

Instance Method Details

#date_created ⇒ Time

Returns The date and time in GMT when the resource was created specified in ISO 8601 format.

Returns:

  • (Time) —

    The date and time in GMT when the resource was created specified in ISO 8601 format.



274
275
276
# File 'lib/twilio-ruby/rest/video/v1/room/recording_rules.rb', line 274

def date_created
    @properties['date_created']
end

#date_updated ⇒ Time

Returns The date and time in GMT when the resource was last updated specified in ISO 8601 format.

Returns:

  • (Time) —

    The date and time in GMT when the resource was last updated specified in ISO 8601 format.



280
281
282
# File 'lib/twilio-ruby/rest/video/v1/room/recording_rules.rb', line 280

def date_updated
    @properties['date_updated']
end

#inspect ⇒ Object

Provide a detailed, user friendly representation



292
293
294
# File 'lib/twilio-ruby/rest/video/v1/room/recording_rules.rb', line 292

def inspect
    "<Twilio.Video.V1.RecordingRulesInstance>"
end

#room_sid ⇒ String

Returns The SID of the Room resource for the Recording Rules.

Returns:

  • (String) —

    The SID of the Room resource for the Recording Rules



262
263
264
# File 'lib/twilio-ruby/rest/video/v1/room/recording_rules.rb', line 262

def room_sid
    @properties['room_sid']
end

#rules ⇒ Array<VideoV1RoomRoomRecordingRuleRules>

Returns A collection of Recording Rules that describe how to include or exclude matching tracks for recording.

Returns:

  • (Array<VideoV1RoomRoomRecordingRuleRules>) —

    A collection of Recording Rules that describe how to include or exclude matching tracks for recording



268
269
270
# File 'lib/twilio-ruby/rest/video/v1/room/recording_rules.rb', line 268

def rules
    @properties['rules']
end

#to_s ⇒ Object

Provide a user friendly representation



286
287
288
# File 'lib/twilio-ruby/rest/video/v1/room/recording_rules.rb', line 286

def to_s
    "<Twilio.Video.V1.RecordingRulesInstance>"
end