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.



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

#addressesObject

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.



116
117
118
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 116

def addresses
  @addresses
end

#nameObject

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.



116
117
118
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 116

def name
  @name
end

#profile_idObject

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.



116
117
118
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 116

def profile_id
  @profile_id
end

#typeObject

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.



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(options = {})
{
        "name": @name,
        "type": @type,
        "profileId": @profile_id,
        "addresses": @addresses,
}.to_json(options)
end