Class: Twilio::REST::Conversations::V2::ParticipantList::UpdateParticipantInConversationRequest
- Inherits:
-
Object
- Object
- Twilio::REST::Conversations::V2::ParticipantList::UpdateParticipantInConversationRequest
- Defined in:
- lib/twilio-ruby/rest/conversations/v2/participant.rb,
lib/twilio-ruby/rest/conversations/v2/participant.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ UpdateParticipantInConversationRequest
constructor
A new instance of UpdateParticipantInConversationRequest.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ UpdateParticipantInConversationRequest
Returns a new instance of UpdateParticipantInConversationRequest.
69 70 71 72 73 74 |
# File 'lib/twilio-ruby/rest/conversations/v2/participant.rb', line 69 def initialize(payload) @name = payload["name"] @type = payload["type"] @profile_id = payload["profile_id"] @addresses = payload["addresses"] end |
Instance Attribute Details
#addresses ⇒ Object
68 69 70 |
# File 'lib/twilio-ruby/rest/conversations/v2/participant.rb', line 68 def addresses @addresses end |
#name ⇒ Object
68 69 70 |
# File 'lib/twilio-ruby/rest/conversations/v2/participant.rb', line 68 def name @name end |
#profile_id ⇒ Object
68 69 70 |
# File 'lib/twilio-ruby/rest/conversations/v2/participant.rb', line 68 def profile_id @profile_id end |
#type ⇒ Object
68 69 70 |
# File 'lib/twilio-ruby/rest/conversations/v2/participant.rb', line 68 def type @type end |
Instance Method Details
#to_json(options = {}) ⇒ Object
75 76 77 78 79 80 81 82 |
# File 'lib/twilio-ruby/rest/conversations/v2/participant.rb', line 75 def to_json( = {}) { "name": @name, "type": @type, "profileId": @profile_id, "addresses": @addresses, }.to_json() end |