lib/twilio-ruby/rest/api/v2010/account/transcription.rb in twilio-ruby-5.38.0 vs lib/twilio-ruby/rest/api/v2010/account/transcription.rb in twilio-ruby-5.39.0
- old
+ new
@@ -86,15 +86,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)
+
TranscriptionPage.new(@version, response, @solution)
end
##
# Retrieve a single page of TranscriptionInstance records from the API.
@@ -162,34 +160,28 @@
@solution = {account_sid: account_sid, sid: sid, }
@uri = "/Accounts/#{@solution[:account_sid]}/Transcriptions/#{@solution[:sid]}.json"
end
##
- # Fetch a TranscriptionInstance
+ # Fetch the TranscriptionInstance
# @return [TranscriptionInstance] Fetched TranscriptionInstance
def fetch
- params = Twilio::Values.of({})
+ payload = @version.fetch('GET', @uri)
- payload = @version.fetch(
- 'GET',
- @uri,
- params,
- )
-
TranscriptionInstance.new(
@version,
payload,
account_sid: @solution[:account_sid],
sid: @solution[:sid],
)
end
##
- # Deletes the TranscriptionInstance
+ # Delete the TranscriptionInstance
# @return [Boolean] true if delete succeeds, false otherwise
def delete
- @version.delete('delete', @uri)
+ @version.delete('DELETE', @uri)
end
##
# Provide a user friendly representation
def to_s
@@ -329,17 +321,17 @@
def uri
@properties['uri']
end
##
- # Fetch a TranscriptionInstance
+ # Fetch the TranscriptionInstance
# @return [TranscriptionInstance] Fetched TranscriptionInstance
def fetch
context.fetch
end
##
- # Deletes the TranscriptionInstance
+ # Delete the TranscriptionInstance
# @return [Boolean] true if delete succeeds, false otherwise
def delete
context.delete
end
\ No newline at end of file