Class: Twilio::REST::Studio::V2::FlowValidateList
- Inherits:
-
ListResource
- Object
- ListResource
- Twilio::REST::Studio::V2::FlowValidateList
- Defined in:
- lib/twilio-ruby/rest/studio/v2/flow_validate.rb
Instance Method Summary collapse
-
#initialize(version) ⇒ FlowValidateList
constructor
Initialize the FlowValidateList.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#update(friendly_name: nil, status: nil, definition: nil, commit_message: :unset) ⇒ FlowValidateInstance
Update the FlowValidateInstance.
Constructor Details
#initialize(version) ⇒ FlowValidateList
Initialize the FlowValidateList
26 27 28 29 30 31 32 |
# File 'lib/twilio-ruby/rest/studio/v2/flow_validate.rb', line 26 def initialize(version) super(version) # Path Solution @solution = { } @uri = "/Flows/Validate" end |
Instance Method Details
#to_s ⇒ Object
Provide a user friendly representation
71 72 73 |
# File 'lib/twilio-ruby/rest/studio/v2/flow_validate.rb', line 71 def to_s '#<Twilio.Studio.V2.FlowValidateList>' end |
#update(friendly_name: nil, status: nil, definition: nil, commit_message: :unset) ⇒ FlowValidateInstance
Update the FlowValidateInstance
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/twilio-ruby/rest/studio/v2/flow_validate.rb', line 40 def update( friendly_name: nil, status: nil, definition: nil, commit_message: :unset ) data = Twilio::Values.of({ 'FriendlyName' => friendly_name, 'Status' => status, 'Definition' => Twilio.serialize_object(definition), 'CommitMessage' => , }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) payload = @version.update('POST', @uri, data: data, headers: headers) FlowValidateInstance.new( @version, payload, ) end |