Class: Twilio::REST::Conversations::V2::ParticipantList::CreateParticipantInConversationRequest
- Inherits:
-
Object
- Object
- Twilio::REST::Conversations::V2::ParticipantList::CreateParticipantInConversationRequest
- 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) ⇒ CreateParticipantInConversationRequest
constructor
A new instance of CreateParticipantInConversationRequest.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ CreateParticipantInConversationRequest
Returns a new instance of CreateParticipantInConversationRequest.
28 29 30 31 32 33 |
# File 'lib/twilio-ruby/rest/conversations/v2/participant.rb', line 28 def initialize(payload) @name = payload["name"] @type = payload["type"] @profile_id = payload["profile_id"] @addresses = payload["addresses"] end |
Instance Attribute Details
#addresses ⇒ Object
27 28 29 |
# File 'lib/twilio-ruby/rest/conversations/v2/participant.rb', line 27 def addresses @addresses end |
#name ⇒ Object
27 28 29 |
# File 'lib/twilio-ruby/rest/conversations/v2/participant.rb', line 27 def name @name end |
#profile_id ⇒ Object
27 28 29 |
# File 'lib/twilio-ruby/rest/conversations/v2/participant.rb', line 27 def profile_id @profile_id end |
#type ⇒ Object
27 28 29 |
# File 'lib/twilio-ruby/rest/conversations/v2/participant.rb', line 27 def type @type end |
Instance Method Details
#to_json(options = {}) ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'lib/twilio-ruby/rest/conversations/v2/participant.rb', line 34 def to_json( = {}) { "name": @name, "type": @type, "profileId": @profile_id, "addresses": @addresses, }.to_json() end |