Class: Google::Apis::TranslateV3::ReferenceSentencePairList

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/translate_v3/classes.rb,
lib/google/apis/translate_v3/representations.rb,
lib/google/apis/translate_v3/representations.rb

Overview

A list of reference sentence pairs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReferenceSentencePairList

Returns a new instance of ReferenceSentencePairList.



1871
1872
1873
# File 'lib/google/apis/translate_v3/classes.rb', line 1871

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#reference_sentence_pairsArray<Google::Apis::TranslateV3::ReferenceSentencePair>

Reference sentence pairs. Corresponds to the JSON property referenceSentencePairs



1869
1870
1871
# File 'lib/google/apis/translate_v3/classes.rb', line 1869

def reference_sentence_pairs
  @reference_sentence_pairs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1876
1877
1878
# File 'lib/google/apis/translate_v3/classes.rb', line 1876

def update!(**args)
  @reference_sentence_pairs = args[:reference_sentence_pairs] if args.key?(:reference_sentence_pairs)
end