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/participant/subscribe_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, participant_sid: nil) ⇒ SubscribeRulesInstance
constructor
Initialize the SubscribeRulesInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#participant_sid ⇒ String
The SID of the Participant resource for the Subscribe Rules.
-
#room_sid ⇒ String
The SID of the Room resource for the Subscribe Rules.
-
#rules ⇒ Array<VideoV1RoomRoomParticipantRoomParticipantSubscribeRuleRules>
A collection of Subscribe Rules that describe how 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
117 118 119 120 121 122 123 124 125 126 127 128 |
# File 'lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb', line 117 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 and time in GMT when the resource was created specified in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.
151 152 153 |
# File 'lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb', line 151 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.
157 158 159 |
# File 'lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb', line 157 def date_updated @properties['date_updated'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
169 170 171 |
# File 'lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb', line 169 def inspect "<Twilio.Video.V1.SubscribeRulesInstance>" end |
#participant_sid ⇒ String
Returns The SID of the Participant resource for the Subscribe Rules.
133 134 135 |
# File 'lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb', line 133 def participant_sid @properties['participant_sid'] end |
#room_sid ⇒ String
Returns The SID of the Room resource for the Subscribe Rules.
139 140 141 |
# File 'lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb', line 139 def room_sid @properties['room_sid'] end |
#rules ⇒ Array<VideoV1RoomRoomParticipantRoomParticipantSubscribeRuleRules>
Returns A collection of Subscribe Rules that describe how to include or exclude matching tracks. See the [Specifying Subscribe Rules](www.twilio.com/docs/video/api/track-subscriptions#specifying-sr) section for further information.
145 146 147 |
# File 'lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb', line 145 def rules @properties['rules'] end |
#to_s ⇒ Object
Provide a user friendly representation
163 164 165 |
# File 'lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb', line 163 def to_s "<Twilio.Video.V1.SubscribeRulesInstance>" end |