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

Version Path
voicebase-client-ruby-1.3.0 lib/voicebase/v1/response.rb
voicebase-client-ruby-1.2.4 lib/voicebase/v1/response.rb
voicebase-client-ruby-1.2.3 lib/voicebase/v1/response.rb
voicebase-client-ruby-1.2.2 lib/voicebase/v1/response.rb
voicebase-client-ruby-1.2.1 lib/voicebase/v1/response.rb
voicebase-client-ruby-1.2.0 lib/voicebase/v1/response.rb
voicebase-client-ruby-1.1.1 lib/voicebase/v1/response.rb
voicebase-client-ruby-1.1.0 lib/voicebase/v1/response.rb
voicebase-client-ruby-1.0.17 lib/voicebase/v1/response.rb
voicebase-client-ruby-1.0.16 lib/voicebase/v1/response.rb
voicebase-client-ruby-1.0.15 lib/voicebase/v1/response.rb
voicebase-client-ruby-1.0.14 lib/voicebase/v1/response.rb