Class: Twilio::REST::Autopilot::V1::RestoreAssistantList
- Inherits:
-
ListResource
- Object
- ListResource
- Twilio::REST::Autopilot::V1::RestoreAssistantList
- Defined in:
- lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb
Overview
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].
Instance Method Summary collapse
-
#initialize(version) ⇒ RestoreAssistantList
constructor
Initialize the RestoreAssistantList.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#update(assistant: nil) ⇒ RestoreAssistantInstance
Update the RestoreAssistantInstance.
Constructor Details
#initialize(version) ⇒ RestoreAssistantList
Initialize the RestoreAssistantList
20 21 22 23 24 25 26 |
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 20 def initialize(version) super(version) # Path Solution @solution = {} @uri = "/Assistants/Restore" end |
Instance Method Details
#to_s ⇒ Object
Provide a user friendly representation
43 44 45 |
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 43 def to_s '#<Twilio.Autopilot.V1.RestoreAssistantList>' end |
#update(assistant: nil) ⇒ RestoreAssistantInstance
Update the RestoreAssistantInstance
33 34 35 36 37 38 39 |
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 33 def update(assistant: nil) data = Twilio::Values.of({'Assistant' => assistant, }) payload = @version.update('POST', @uri, data: data) RestoreAssistantInstance.new(@version, payload, ) end |