lib/twilio-ruby/rest/chat/v2/service/binding.rb in twilio-ruby-6.9.1 vs lib/twilio-ruby/rest/chat/v2/service/binding.rb in twilio-ruby-6.11.0
- old
+ new
@@ -18,10 +18,11 @@
class Chat < ChatBase
class V2 < Version
class ServiceContext < InstanceContext
class BindingList < ListResource
+
##
# Initialize the BindingList
# @param [Version] version Version that contains the resource
# @return [BindingList] BindingList
def initialize(version, service_sid: nil)
@@ -158,17 +159,19 @@
##
# Delete the BindingInstance
# @return [Boolean] True if delete succeeds, false otherwise
def delete
+
@version.delete('DELETE', @uri)
end
##
# Fetch the BindingInstance
# @return [BindingInstance] Fetched BindingInstance
def fetch
+
payload = @version.fetch('GET', @uri)
BindingInstance.new(
@version,
payload,
service_sid: @solution[:service_sid],