Class: Twilio::REST::Video::V1::RoomContext::RecordingRulesInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Video::V1::RoomContext::RecordingRulesInstance
- Defined in:
- lib/twilio-ruby/rest/video/v1/room/recording_rules.rb
Instance Method Summary collapse
-
#date_created ⇒ Time
The date and time in GMT when the resource was created specified in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.
-
#date_updated ⇒ Time
The date and time in GMT when the resource was last updated specified in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.
-
#initialize(version, payload, room_sid: nil) ⇒ RecordingRulesInstance
constructor
Initialize the RecordingRulesInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#room_sid ⇒ String
The SID of the Room resource for the Recording Rules.
-
#rules ⇒ Array<VideoV1RoomRoomRecordingRuleRules>
A collection of Recording Rules that describe how to include or exclude matching tracks for recording.
-
#to_s ⇒ Object
Provide a user friendly representation.
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_created ⇒ Time
Returns The date and time in GMT when the resource was created specified in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.
154 155 156 |
# File 'lib/twilio-ruby/rest/video/v1/room/recording_rules.rb', line 154 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](en.wikipedia.org/wiki/ISO_8601) format.
160 161 162 |
# File 'lib/twilio-ruby/rest/video/v1/room/recording_rules.rb', line 160 def date_updated @properties['date_updated'] end |
#inspect ⇒ Object
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_sid ⇒ String
Returns 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 |
#rules ⇒ Array<VideoV1RoomRoomRecordingRuleRules>
Returns 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_s ⇒ Object
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 |