class AzureSTT::Parsers::Report

Parse a report from a contentUrl to a Models::Report

Protected Instance Methods

build_attributes() click to toggle source

Build a hash which can create a Models::Report

@return [Hash] report's initializer parameters

# File lib/azure_stt/parsers/report.rb, line 16
def build_attributes
  {
    successful_transcriptions_count: hash['successfulTranscriptionsCount'],
    failed_transcriptions_count: hash['failedTranscriptionsCount'],
    details: hash['details']
  }
end