Class: Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreatePolicyRequest
- Inherits:
-
Object
- Object
- Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreatePolicyRequest
- 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
-
#initialize(payload) ⇒ AssistantsV1ServiceCreatePolicyRequest
constructor
A new instance of AssistantsV1ServiceCreatePolicyRequest.
- #to_json(options = {}) ⇒ Object
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
#description ⇒ Object
28 29 30 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 28 def description @description end |
#id ⇒ Object
28 29 30 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 28 def id @id end |
#name ⇒ Object
28 29 30 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 28 def name @name end |
#policy_details ⇒ Object
28 29 30 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 28 def policy_details @policy_details end |
#type ⇒ Object
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( = {}) { "description": @description, "id": @id, "name": @name, "policy_details": @policy_details, "type": @type, }.to_json() end |