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

Inherits:
InstanceResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/video/v1/room/room_recording_rule.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

  • room_sid (String) (defaults to: nil)

    The SID of the Room resource for the Recording Rules


92
93
94
95
96
97
98
99
100
101
102
# File 'lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb', line 92

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_createdTime

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

Returns:

  • (Time)

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


118
119
120
# File 'lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb', line 118

def date_created
  @properties['date_created']
end

#date_updatedTime

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

Returns:

  • (Time)

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


124
125
126
# File 'lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb', line 124

def date_updated
  @properties['date_updated']
end

#inspectObject

Provide a detailed, user friendly representation


136
137
138
# File 'lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb', line 136

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

#room_sidString

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

Returns:

  • (String)

    The SID of the Room resource for the Recording Rules


106
107
108
# File 'lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb', line 106

def room_sid
  @properties['room_sid']
end

#rulesArray[String]

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

Returns:

  • (Array[String])

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


112
113
114
# File 'lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb', line 112

def rules
  @properties['rules']
end

#to_sObject

Provide a user friendly representation


130
131
132
# File 'lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb', line 130

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