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.



127
128
129
130
131
132
133
134
135
136
137
# File 'lib/twilio-ruby/rest/video/v1/room/recording_rules.rb', line 127

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 date and time in GMT when the resource was created specified in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.

Returns:



154
155
156
# File 'lib/twilio-ruby/rest/video/v1/room/recording_rules.rb', line 154

def date_created
    @properties['date_created']
end

#date_updatedTime

Returns The date and time in GMT when the resource was last updated specified in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.

Returns:



160
161
162
# File 'lib/twilio-ruby/rest/video/v1/room/recording_rules.rb', line 160

def date_updated
    @properties['date_updated']
end

#inspectObject

Provide a detailed, user friendly representation



172
173
174
# File 'lib/twilio-ruby/rest/video/v1/room/recording_rules.rb', line 172

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



142
143
144
# File 'lib/twilio-ruby/rest/video/v1/room/recording_rules.rb', line 142

def room_sid
    @properties['room_sid']
end

#rulesArray<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



148
149
150
# File 'lib/twilio-ruby/rest/video/v1/room/recording_rules.rb', line 148

def rules
    @properties['rules']
end

#to_sObject

Provide a user friendly representation



166
167
168
# File 'lib/twilio-ruby/rest/video/v1/room/recording_rules.rb', line 166

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