Class: Twilio::REST::Conversations::V2::ConversationList::CreateConversationWithConfigRequestParticipants
- Inherits:
-
Object
- Object
- Twilio::REST::Conversations::V2::ConversationList::CreateConversationWithConfigRequestParticipants
- Defined in:
- lib/twilio-ruby/rest/conversations/v2/conversation.rb,
lib/twilio-ruby/rest/conversations/v2/conversation.rb,
lib/twilio-ruby/rest/conversations/v2/conversation.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ CreateConversationWithConfigRequestParticipants
constructor
A new instance of CreateConversationWithConfigRequestParticipants.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ CreateConversationWithConfigRequestParticipants
Returns a new instance of CreateConversationWithConfigRequestParticipants.
117 118 119 120 121 122 |
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 117 def initialize(payload) @name = payload["name"] @type = payload["type"] @profile_id = payload["profile_id"] @addresses = payload["addresses"] end |
Instance Attribute Details
#addresses ⇒ Object
116 117 118 |
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 116 def addresses @addresses end |
#name ⇒ Object
116 117 118 |
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 116 def name @name end |
#profile_id ⇒ Object
116 117 118 |
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 116 def profile_id @profile_id end |
#type ⇒ Object
116 117 118 |
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 116 def type @type end |
Instance Method Details
#to_json(options = {}) ⇒ Object
123 124 125 126 127 128 129 130 |
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 123 def to_json( = {}) { "name": @name, "type": @type, "profileId": @profile_id, "addresses": @addresses, }.to_json() end |