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



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



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



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



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>



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