Class: Twilio::REST::Video::V1::RoomContext::ParticipantContext::AnonymizeInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Video::V1::RoomContext::ParticipantContext::AnonymizeInstance
- Defined in:
- lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb
Instance Method Summary collapse
-
#account_sid ⇒ String
The SID of the [Account](www.twilio.com/docs/iam/api/account) that created the RoomParticipant resource.
-
#context ⇒ AnonymizeContext
Generate an instance context for the instance, the context is capable of performing various actions.
-
#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.
-
#duration ⇒ String
The duration in seconds that the participant was
connected. -
#end_time ⇒ Time
The time when the participant disconnected from the room in [ISO 8601](en.wikipedia.org/wiki/ISO_8601#UTC) format.
-
#identity ⇒ String
The SID of the participant.
-
#initialize(version, payload, room_sid: nil, sid: nil) ⇒ AnonymizeInstance
constructor
Initialize the AnonymizeInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#room_sid ⇒ String
The SID of the participant’s room.
-
#sid ⇒ String
The unique string that we created to identify the RoomParticipant resource.
-
#start_time ⇒ Time
The time of participant connected to the room in [ISO 8601](en.wikipedia.org/wiki/ISO_8601#UTC) format.
- #status ⇒ Status
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#update ⇒ AnonymizeInstance
Update the AnonymizeInstance.
-
#url ⇒ String
The absolute URL of the resource.
Constructor Details
#initialize(version, payload, room_sid: nil, sid: nil) ⇒ AnonymizeInstance
Initialize the AnonymizeInstance
272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 |
# File 'lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb', line 272 def initialize(version, payload , room_sid: nil, sid: nil) super(version) # Marshaled Properties @properties = { 'sid' => payload['sid'], 'room_sid' => payload['room_sid'], 'account_sid' => payload['account_sid'], 'status' => payload['status'], 'identity' => payload['identity'], 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']), 'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']), 'start_time' => Twilio.deserialize_iso8601_datetime(payload['start_time']), 'end_time' => Twilio.deserialize_iso8601_datetime(payload['end_time']), 'duration' => payload['duration'] == nil ? payload['duration'] : payload['duration'].to_i, 'url' => payload['url'], } # Context @instance_context = nil @params = { 'room_sid' => room_sid || @properties['room_sid'] ,'sid' => sid || @properties['sid'] , } end |
Instance Method Details
#account_sid ⇒ String
321 322 323 |
# File 'lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb', line 321 def account_sid @properties['account_sid'] end |
#context ⇒ AnonymizeContext
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context
300 301 302 303 304 305 |
# File 'lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb', line 300 def context unless @instance_context @instance_context = AnonymizeContext.new(@version , @params['room_sid'], @params['sid']) end @instance_context end |
#date_created ⇒ Time
339 340 341 |
# File 'lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb', line 339 def date_created @properties['date_created'] end |
#date_updated ⇒ Time
345 346 347 |
# File 'lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb', line 345 def date_updated @properties['date_updated'] end |
#duration ⇒ String
363 364 365 |
# File 'lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb', line 363 def duration @properties['duration'] end |
#end_time ⇒ Time
357 358 359 |
# File 'lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb', line 357 def end_time @properties['end_time'] end |
#identity ⇒ String
333 334 335 |
# File 'lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb', line 333 def identity @properties['identity'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
390 391 392 393 |
# File 'lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb', line 390 def inspect values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Video.V1.AnonymizeInstance #{values}>" end |
#room_sid ⇒ String
315 316 317 |
# File 'lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb', line 315 def room_sid @properties['room_sid'] end |
#sid ⇒ String
309 310 311 |
# File 'lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb', line 309 def sid @properties['sid'] end |
#start_time ⇒ Time
351 352 353 |
# File 'lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb', line 351 def start_time @properties['start_time'] end |
#status ⇒ Status
327 328 329 |
# File 'lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb', line 327 def status @properties['status'] end |
#to_s ⇒ Object
Provide a user friendly representation
383 384 385 386 |
# File 'lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb', line 383 def to_s values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Video.V1.AnonymizeInstance #{values}>" end |
#update ⇒ AnonymizeInstance
Update the AnonymizeInstance
376 377 378 379 |
# File 'lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb', line 376 def update context.update end |
#url ⇒ String
369 370 371 |
# File 'lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb', line 369 def url @properties['url'] end |