lib/rev-api/models/order_request.rb in rev-api-2.0.3 vs lib/rev-api/models/order_request.rb in rev-api-2.1.0

- old
+ new

@@ -150,10 +150,13 @@ # @see https://www.rev.com/api/orderspostcaption class CaptionOptions < InputOptions # Array of file formats the captions should be delivered as. (Optional, default is SubRip) attr_reader :output_file_formats + # Optional, Array of language codes to request foreign language subtitles + attr_reader :subtitle_languages + # All supported output file formats OUTPUT_FILE_FORMATS = { :subrip => 'SubRip', :scc => 'Scc', :mcc => 'Mcc', @@ -163,9 +166,13 @@ :webvtt => 'WebVtt', :dfxp => 'Dfxp', :cheetahcap => 'CheetahCap' } + # @param inputs [Array] list of inputs + # @param info [Hash] of fields to initialize instance. May contain: + # - :subtitle_languages + # @see TranslationOptions for a list of language codes. def initialize(inputs, info = {}) super(inputs, info) raise(ArgumentError, "invalid format(s)") unless validate_output_formats(info[:output_file_formats]) end