Class: Twilio::REST::Video::V1::RoomContext::ParticipantContext::SubscribeRulesInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Video::V1::RoomContext::ParticipantContext::SubscribeRulesInstance
- Defined in:
- lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb
Overview
PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
Instance Method Summary collapse
-
#date_created ⇒ Time
The date that this resource was created.
-
#date_updated ⇒ Time
The date that this resource was last updated.
-
#initialize(version, payload, room_sid: nil, participant_sid: nil) ⇒ SubscribeRulesInstance
constructor
Initialize the SubscribeRulesInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#participant_sid ⇒ String
The unique Participant identifier for the Subscribe Rules.
-
#room_sid ⇒ String
The unique Room identifier for the Subscribe Rules.
-
#rules ⇒ String
A collection of Subscribe Rules to include or exclude matching Tracks.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, payload, room_sid: nil, participant_sid: nil) ⇒ SubscribeRulesInstance
Initialize the SubscribeRulesInstance
131 132 133 134 135 136 137 138 139 140 141 142 |
# File 'lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb', line 131 def initialize(version, payload, room_sid: nil, participant_sid: nil) super(version) # Marshaled Properties @properties = { 'participant_sid' => payload['participant_sid'], '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 that this resource was created.
164 165 166 |
# File 'lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb', line 164 def date_created @properties['date_created'] end |
#date_updated ⇒ Time
Returns The date that this resource was last updated.
170 171 172 |
# File 'lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb', line 170 def date_updated @properties['date_updated'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
182 183 184 |
# File 'lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb', line 182 def inspect "<Twilio.Video.V1.SubscribeRulesInstance>" end |
#participant_sid ⇒ String
Returns The unique Participant identifier for the Subscribe Rules.
146 147 148 |
# File 'lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb', line 146 def participant_sid @properties['participant_sid'] end |
#room_sid ⇒ String
Returns The unique Room identifier for the Subscribe Rules.
152 153 154 |
# File 'lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb', line 152 def room_sid @properties['room_sid'] end |
#rules ⇒ String
Returns A collection of Subscribe Rules to include or exclude matching Tracks.
158 159 160 |
# File 'lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb', line 158 def rules @properties['rules'] end |
#to_s ⇒ Object
Provide a user friendly representation
176 177 178 |
# File 'lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb', line 176 def to_s "<Twilio.Video.V1.SubscribeRulesInstance>" end |