lib/twilio-ruby/rest/flex_api/v1/configuration.rb in twilio-ruby-6.12.1 vs lib/twilio-ruby/rest/flex_api/v1/configuration.rb in twilio-ruby-7.0.0.pre.rc.1
- old
+ new
@@ -71,11 +71,24 @@
@version,
payload,
)
end
+ ##
+ # Update the ConfigurationInstance
+ # @return [ConfigurationInstance] Updated ConfigurationInstance
+ def update
+
+ payload = @version.update('POST', @uri)
+ ConfigurationInstance.new(
+ @version,
+ payload,
+ )
+ end
+
+
##
# Provide a user friendly representation
def to_s
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.FlexApi.V1.ConfigurationContext #{context}>"
@@ -502,9 +515,17 @@
)
context.fetch(
ui_version: ui_version,
)
+ end
+
+ ##
+ # Update the ConfigurationInstance
+ # @return [ConfigurationInstance] Updated ConfigurationInstance
+ def update
+
+ context.update
end
##
# Provide a user friendly representation
def to_s