Sha256: b07ad82b4ed40177cfa7c3522c3036aa0044f1d1b34160c1d3e0067b74d0e13e
Contents?: true
Size: 600 Bytes
Versions: 12
Compression:
Stored size: 600 Bytes
Contents
module VoiceBase module V1 module Response def self.extended(response) end def success? ok? && request_status == "SUCCESS" end def transcript_ready? # this was added because with the V1 API, a value in the returned JSON indicates both a # successful HTTP request, but also a ready transcript. With V2, there's no JSON value # to indicate status. Instead, the HTTP status code indicates request status, and # the state becoming "finished" indicates the transcript it ready. success? end end end end
Version data entries
12 entries across 12 versions & 1 rubygems