Class: Twi::Participant
Overview
The representation of a participant in a (clasic) conversation.
Instance Method Summary collapse
-
#id ⇒ String
Unique identifier.
-
#identity ⇒ String?
Optional identifier.
-
#phone ⇒ String
10-digit phone number.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from Twi::Resource
Instance Method Details
#id ⇒ String
Returns unique identifier.
6 |
# File 'lib/twi/participant.rb', line 6 def id = @params['ParticipantSid'] |
#identity ⇒ String?
Returns optional identifier.
12 |
# File 'lib/twi/participant.rb', line 12 def identity = @params['Identity'] |
#phone ⇒ String
Returns 10-digit phone number.
9 |
# File 'lib/twi/participant.rb', line 9 def phone = remove_prefix_from @params['MessagingBinding.Address'] |