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
114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/twilio-ruby/rest/video/v1/room/recording_rules.rb', line 114 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.
141 142 143 |
# File 'lib/twilio-ruby/rest/video/v1/room/recording_rules.rb', line 141 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.
147 148 149 |
# File 'lib/twilio-ruby/rest/video/v1/room/recording_rules.rb', line 147 def date_updated @properties['date_updated'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
159 160 161 |
# File 'lib/twilio-ruby/rest/video/v1/room/recording_rules.rb', line 159 def inspect "<Twilio.Video.V1.RecordingRulesInstance>" end |
#room_sid ⇒ String
Returns The SID of the Room resource for the Recording Rules.
129 130 131 |
# File 'lib/twilio-ruby/rest/video/v1/room/recording_rules.rb', line 129 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.
135 136 137 |
# File 'lib/twilio-ruby/rest/video/v1/room/recording_rules.rb', line 135 def rules @properties['rules'] end |
#to_s ⇒ Object
Provide a user friendly representation
153 154 155 |
# File 'lib/twilio-ruby/rest/video/v1/room/recording_rules.rb', line 153 def to_s "<Twilio.Video.V1.RecordingRulesInstance>" end |