Class: Twilio::REST::Video::V1::RoomContext::ParticipantContext::AnonymizeContext
- Inherits:
-
InstanceContext
- Object
- InstanceContext
- Twilio::REST::Video::V1::RoomContext::ParticipantContext::AnonymizeContext
- Defined in:
- lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_anonymize.rb
Instance Method Summary collapse
-
#initialize(version, room_sid, sid) ⇒ AnonymizeContext
constructor
Initialize the AnonymizeContext.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#update ⇒ AnonymizeInstance
Update the AnonymizeInstance.
Constructor Details
#initialize(version, room_sid, sid) ⇒ AnonymizeContext
Initialize the AnonymizeContext
73 74 75 76 77 78 79 |
# File 'lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_anonymize.rb', line 73 def initialize(version, room_sid, sid) super(version) # Path Solution @solution = {room_sid: room_sid, sid: sid, } @uri = "/Rooms/#{@solution[:room_sid]}/Participants/#{@solution[:sid]}/Anonymize" end |
Instance Method Details
#inspect ⇒ Object
Provide a detailed, user friendly representation
99 100 101 102 |
# File 'lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_anonymize.rb', line 99 def inspect context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Video.V1.AnonymizeContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
92 93 94 95 |
# File 'lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_anonymize.rb', line 92 def to_s context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Video.V1.AnonymizeContext #{context}>" end |
#update ⇒ AnonymizeInstance
Update the AnonymizeInstance
84 85 86 87 88 |
# File 'lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_anonymize.rb', line 84 def update payload = @version.update('POST', @uri) AnonymizeInstance.new(@version, payload, room_sid: @solution[:room_sid], sid: @solution[:sid], ) end |