Class: Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreatePolicyRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ AssistantsV1ServiceCreatePolicyRequest

Returns a new instance of AssistantsV1ServiceCreatePolicyRequest.



29
30
31
32
33
34
35
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 29

def initialize(payload)
        @description = payload["description"]
        @id = payload["id"]
        @name = payload["name"]
        @policy_details = payload["policy_details"]
        @type = payload["type"]
end

Instance Attribute Details

#descriptionObject

Parameters:

  • : (description)
    String

    The description of the policy.

  • : (id)
    String

    The Policy ID.

  • : (name)
    String

    The name of the policy.

  • : (policy_details)
    Hash
  • : (type)
    String

    The description of the policy.



28
29
30
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 28

def description
  @description
end

#idObject

Parameters:

  • : (description)
    String

    The description of the policy.

  • : (id)
    String

    The Policy ID.

  • : (name)
    String

    The name of the policy.

  • : (policy_details)
    Hash
  • : (type)
    String

    The description of the policy.



28
29
30
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 28

def id
  @id
end

#nameObject

Parameters:

  • : (description)
    String

    The description of the policy.

  • : (id)
    String

    The Policy ID.

  • : (name)
    String

    The name of the policy.

  • : (policy_details)
    Hash
  • : (type)
    String

    The description of the policy.



28
29
30
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 28

def name
  @name
end

#policy_detailsObject

Parameters:

  • : (description)
    String

    The description of the policy.

  • : (id)
    String

    The Policy ID.

  • : (name)
    String

    The name of the policy.

  • : (policy_details)
    Hash
  • : (type)
    String

    The description of the policy.



28
29
30
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 28

def policy_details
  @policy_details
end

#typeObject

Parameters:

  • : (description)
    String

    The description of the policy.

  • : (id)
    String

    The Policy ID.

  • : (name)
    String

    The name of the policy.

  • : (policy_details)
    Hash
  • : (type)
    String

    The description of the policy.



28
29
30
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 28

def type
  @type
end

Instance Method Details

#to_json(options = {}) ⇒ Object



36
37
38
39
40
41
42
43
44
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 36

def to_json(options = {})
{
        "description": @description,
        "id": @id,
        "name": @name,
        "policy_details": @policy_details,
        "type": @type,
}.to_json(options)
end