class Twilio::REST::Video::V1::RoomContext::ParticipantContext::SubscribeRulesInstance

Public Class Methods

new(version, payload, room_sid: nil, participant_sid: nil) click to toggle source

Initialize the SubscribeRulesInstance @param [Version] version Version that contains the resource @param [Hash] payload payload that contains response from Twilio @param [String] room_sid The SID of the Room resource for the Subscribe Rules @param [String] participant_sid The SID of the Participant resource for the

Subscribe Rules.

@return [SubscribeRulesInstance] SubscribeRulesInstance

Calls superclass method Twilio::REST::InstanceResource::new
    # File lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb
115 def initialize(version, payload, room_sid: nil, participant_sid: nil)
116   super(version)
117 
118   # Marshaled Properties
119   @properties = {
120       'participant_sid' => payload['participant_sid'],
121       'room_sid' => payload['room_sid'],
122       'rules' => payload['rules'],
123       'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
124       'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
125   }
126 end

Public Instance Methods

date_created() click to toggle source

@return [Time] The ISO 8601 date and time in GMT when the resource was created

    # File lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb
148 def date_created
149   @properties['date_created']
150 end
date_updated() click to toggle source

@return [Time] The ISO 8601 date and time in GMT when the resource was last updated

    # File lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb
154 def date_updated
155   @properties['date_updated']
156 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb
166 def inspect
167   "<Twilio.Video.V1.SubscribeRulesInstance>"
168 end
participant_sid() click to toggle source

@return [String] The SID of the Participant resource for the Subscribe Rules

    # File lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb
130 def participant_sid
131   @properties['participant_sid']
132 end
room_sid() click to toggle source

@return [String] The SID of the Room resource for the Subscribe Rules

    # File lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb
136 def room_sid
137   @properties['room_sid']
138 end
rules() click to toggle source

@return [Array] A collection of Subscribe Rules that describe how to include or exclude matching tracks

    # File lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb
142 def rules
143   @properties['rules']
144 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb
160 def to_s
161   "<Twilio.Video.V1.SubscribeRulesInstance>"
162 end