Class: Twilio::REST::Intelligence::V3::RuleExecutionList::ExecutionDetailsParticipants

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/intelligence/v3/rule_execution.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ ExecutionDetailsParticipants

Returns a new instance of ExecutionDetailsParticipants.



62
63
64
65
66
# File 'lib/twilio-ruby/rest/intelligence/v3/rule_execution.rb', line 62

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

Instance Attribute Details

#idObject

Parameters:

  • : (id)

    [String] The id of the Participant in the Conversation.

  • : (profile_id)

    [String] Customer Memory Profile identifier

  • : (type)

    [String] Type of participant in the conversation. Available types: - CUSTOMER - HUMAN_AGENT - AI_AGENT - AGENT - UNKNOWN



61
62
63
# File 'lib/twilio-ruby/rest/intelligence/v3/rule_execution.rb', line 61

def id
  @id
end

#profile_idObject

Parameters:

  • : (id)

    [String] The id of the Participant in the Conversation.

  • : (profile_id)

    [String] Customer Memory Profile identifier

  • : (type)

    [String] Type of participant in the conversation. Available types: - CUSTOMER - HUMAN_AGENT - AI_AGENT - AGENT - UNKNOWN



61
62
63
# File 'lib/twilio-ruby/rest/intelligence/v3/rule_execution.rb', line 61

def profile_id
  @profile_id
end

#typeObject

Parameters:

  • : (id)

    [String] The id of the Participant in the Conversation.

  • : (profile_id)

    [String] Customer Memory Profile identifier

  • : (type)

    [String] Type of participant in the conversation. Available types: - CUSTOMER - HUMAN_AGENT - AI_AGENT - AGENT - UNKNOWN



61
62
63
# File 'lib/twilio-ruby/rest/intelligence/v3/rule_execution.rb', line 61

def type
  @type
end

Instance Method Details

#to_json(options = {}) ⇒ Object



67
68
69
70
71
72
73
# File 'lib/twilio-ruby/rest/intelligence/v3/rule_execution.rb', line 67

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