lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb in twilio-ruby-6.9.1 vs lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb in twilio-ruby-6.11.0
- old
+ new
@@ -18,10 +18,11 @@
class Content < ContentBase
class V1 < Version
class ContentContext < InstanceContext
class ApprovalFetchList < ListResource
+
##
# Initialize the ApprovalFetchList
# @param [Version] version Version that contains the resource
# @return [ApprovalFetchList] ApprovalFetchList
def initialize(version, sid: nil)
@@ -61,9 +62,10 @@
##
# Fetch the ApprovalFetchInstance
# @return [ApprovalFetchInstance] Fetched ApprovalFetchInstance
def fetch
+
payload = @version.fetch('GET', @uri)
ApprovalFetchInstance.new(
@version,
payload,
sid: @solution[:sid],