Class: Rev::Input

Inherits:
ApiSerializable show all
Defined in:
lib/rev-api/models/order_request.rb

Overview

Input for order (aka source file)

Instance Attribute Summary collapse

Method Summary

Methods inherited from ApiSerializable

#initialize, #to_hash, #to_json

Constructor Details

This class inherits a constructor from Rev::ApiSerializable

Instance Attribute Details

#audio_length_secondsObject (readonly)

Length of audio in seconds (mandatory in case of inability to determine it automatically). Used within OrderRequest::TranscriptionInfo



188
189
190
# File 'lib/rev-api/models/order_request.rb', line 188

def audio_length_seconds
  @audio_length_seconds
end

External URL, if sources wasn’t POSTed as input (YouTube, Vimeo, Dropbox, etc)



199
200
201
# File 'lib/rev-api/models/order_request.rb', line 199

def external_link
  @external_link
end

#uriObject (readonly)

Mandatory, URI of the media, as returned from the call to POST /inputs. :external_link might substitute :uri for Transcription or Caption.



196
197
198
# File 'lib/rev-api/models/order_request.rb', line 196

def uri
  @uri
end

#video_length_secondsObject (readonly)

Length of video in seconds (mandatory in case of inability to determine it automatically). Used within OrderRequest::CaptionInfo



192
193
194
# File 'lib/rev-api/models/order_request.rb', line 192

def video_length_seconds
  @video_length_seconds
end

#word_lengthObject (readonly)

Mandatory when used with OrderRequest::TranslationInfo, length of document, in words



184
185
186
# File 'lib/rev-api/models/order_request.rb', line 184

def word_length
  @word_length
end