Class: Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceUpdateAssistantRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/assistants/v1/assistant.rb,
lib/twilio-ruby/rest/assistants/v1/assistant.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ AssistantsV1ServiceUpdateAssistantRequest

Returns a new instance of AssistantsV1ServiceUpdateAssistantRequest.



89
90
91
92
93
94
95
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 89

def initialize(payload)
        @customer_ai = payload["customer_ai"]
        @name = payload["name"]
        @owner = payload["owner"]
        @personality_prompt = payload["personality_prompt"]
        @segment_credential = payload["segment_credential"]
end

Instance Attribute Details

#customer_aiObject

Parameters:

  • : (customer_ai)
    AssistantList.AssistantsV1ServiceCustomerAi
  • : (name)
    String

    The name of the assistant.

  • : (owner)
    String

    The owner/company of the assistant.

  • : (personality_prompt)
    String

    The personality prompt to be used for assistant.

  • : (segment_credential)
    AssistantList.AssistantsV1ServiceSegmentCredential


88
89
90
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 88

def customer_ai
  @customer_ai
end

#nameObject

Parameters:

  • : (customer_ai)
    AssistantList.AssistantsV1ServiceCustomerAi
  • : (name)
    String

    The name of the assistant.

  • : (owner)
    String

    The owner/company of the assistant.

  • : (personality_prompt)
    String

    The personality prompt to be used for assistant.

  • : (segment_credential)
    AssistantList.AssistantsV1ServiceSegmentCredential


88
89
90
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 88

def name
  @name
end

#ownerObject

Parameters:

  • : (customer_ai)
    AssistantList.AssistantsV1ServiceCustomerAi
  • : (name)
    String

    The name of the assistant.

  • : (owner)
    String

    The owner/company of the assistant.

  • : (personality_prompt)
    String

    The personality prompt to be used for assistant.

  • : (segment_credential)
    AssistantList.AssistantsV1ServiceSegmentCredential


88
89
90
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 88

def owner
  @owner
end

#personality_promptObject

Parameters:

  • : (customer_ai)
    AssistantList.AssistantsV1ServiceCustomerAi
  • : (name)
    String

    The name of the assistant.

  • : (owner)
    String

    The owner/company of the assistant.

  • : (personality_prompt)
    String

    The personality prompt to be used for assistant.

  • : (segment_credential)
    AssistantList.AssistantsV1ServiceSegmentCredential


88
89
90
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 88

def personality_prompt
  @personality_prompt
end

#segment_credentialObject

Parameters:

  • : (customer_ai)
    AssistantList.AssistantsV1ServiceCustomerAi
  • : (name)
    String

    The name of the assistant.

  • : (owner)
    String

    The owner/company of the assistant.

  • : (personality_prompt)
    String

    The personality prompt to be used for assistant.

  • : (segment_credential)
    AssistantList.AssistantsV1ServiceSegmentCredential


88
89
90
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 88

def segment_credential
  @segment_credential
end

Instance Method Details

#to_json(options = {}) ⇒ Object



96
97
98
99
100
101
102
103
104
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 96

def to_json(options = {})
{
        "customer_ai": @customer_ai,
        "name": @name,
        "owner": @owner,
        "personality_prompt": @personality_prompt,
        "segment_credential": @segment_credential,
}.to_json(options)
end