lib/twilio-ruby/rest/conversations/v1/service/configuration.rb in twilio-ruby-6.9.1 vs lib/twilio-ruby/rest/conversations/v1/service/configuration.rb in twilio-ruby-6.11.0
- old
+ new
@@ -18,10 +18,11 @@
class Conversations < ConversationsBase
class V1 < Version
class ServiceContext < InstanceContext
class ConfigurationList < ListResource
+
##
# Initialize the ConfigurationList
# @param [Version] version Version that contains the resource
# @return [ConfigurationList] ConfigurationList
def initialize(version, chat_service_sid: nil)
@@ -61,10 +62,11 @@
##
# Fetch the ConfigurationInstance
# @return [ConfigurationInstance] Fetched ConfigurationInstance
def fetch
+
payload = @version.fetch('GET', @uri)
ConfigurationInstance.new(
@version,
payload,
chat_service_sid: @solution[:chat_service_sid],
@@ -90,9 +92,10 @@
'DefaultConversationRoleSid' => default_conversation_role_sid,
'DefaultChatServiceRoleSid' => default_chat_service_role_sid,
'ReachabilityEnabled' => reachability_enabled,
})
+
payload = @version.update('POST', @uri, data: data)
ConfigurationInstance.new(
@version,
payload,
chat_service_sid: @solution[:chat_service_sid],