Class: Twilio::REST::Conversations::V2::ConversationList::CreateConversationWithConfigRequestParticipants

Inherits:
Object
  • Object
show all
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

Constructor Details

#initialize(payload) ⇒ CreateConversationWithConfigRequestParticipants

Returns a new instance of CreateConversationWithConfigRequestParticipants.



202
203
204
205
206
207
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 202

def initialize(payload)
        @name = payload["name"]
        @type = payload["type"]
        @profile_id = payload["profile_id"]
        @addresses = payload["addresses"]
end

Instance Attribute Details

#addresses ⇒ Object

Parameters:

  • : (name) —

    [String] Display name for the Participant.

  • : (type) —

    [String] Type of Participant in the Conversation.

  • : (profile_id) —

    [String] Resolved profile ID.

  • : (addresses) —

    [Array<ConversationList.CreateConversationWithConfigRequestParticipantsAddresses>] List of Communication addresses for the Participant.



201
202
203
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 201

def addresses
  @addresses
end

#name ⇒ Object

Parameters:

  • : (name) —

    [String] Display name for the Participant.

  • : (type) —

    [String] Type of Participant in the Conversation.

  • : (profile_id) —

    [String] Resolved profile ID.

  • : (addresses) —

    [Array<ConversationList.CreateConversationWithConfigRequestParticipantsAddresses>] List of Communication addresses for the Participant.



201
202
203
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 201

def name
  @name
end

#profile_id ⇒ Object

Parameters:

  • : (name) —

    [String] Display name for the Participant.

  • : (type) —

    [String] Type of Participant in the Conversation.

  • : (profile_id) —

    [String] Resolved profile ID.

  • : (addresses) —

    [Array<ConversationList.CreateConversationWithConfigRequestParticipantsAddresses>] List of Communication addresses for the Participant.



201
202
203
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 201

def profile_id
  @profile_id
end

#type ⇒ Object

Parameters:

  • : (name) —

    [String] Display name for the Participant.

  • : (type) —

    [String] Type of Participant in the Conversation.

  • : (profile_id) —

    [String] Resolved profile ID.

  • : (addresses) —

    [Array<ConversationList.CreateConversationWithConfigRequestParticipantsAddresses>] List of Communication addresses for the Participant.



201
202
203
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 201

def type
  @type
end

Instance Method Details

#to_json(options = {}) ⇒ Object



208
209
210
211
212
213
214
215
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 208

def to_json(options = {})
{
        "name": @name,
        "type": @type,
        "profileId": @profile_id,
        "addresses": @addresses,
}.to_json(options)
end