lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb in twilio-ruby-5.38.0 vs lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb in twilio-ruby-5.39.0
- old
+ new
@@ -87,15 +87,13 @@
params = Twilio::Values.of({
'PageToken' => page_token,
'Page' => page_number,
'PageSize' => page_size,
})
- response = @version.page(
- 'GET',
- @uri,
- params
- )
+
+ response = @version.page('GET', @uri, params)
+
FlowRevisionPage.new(@version, response, @solution)
end
##
# Retrieve a single page of FlowRevisionInstance records from the API.
@@ -165,21 +163,15 @@
@solution = {sid: sid, revision: revision, }
@uri = "/Flows/#{@solution[:sid]}/Revisions/#{@solution[:revision]}"
end
##
- # Fetch a FlowRevisionInstance
+ # Fetch the FlowRevisionInstance
# @return [FlowRevisionInstance] Fetched FlowRevisionInstance
def fetch
- params = Twilio::Values.of({})
+ payload = @version.fetch('GET', @uri)
- payload = @version.fetch(
- 'GET',
- @uri,
- params,
- )
-
FlowRevisionInstance.new(@version, payload, sid: @solution[:sid], revision: @solution[:revision], )
end
##
# Provide a user friendly representation
@@ -314,10 +306,10 @@
def url
@properties['url']
end
##
- # Fetch a FlowRevisionInstance
+ # Fetch the FlowRevisionInstance
# @return [FlowRevisionInstance] Fetched FlowRevisionInstance
def fetch
context.fetch
end
\ No newline at end of file