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.



1901
1902
1903
# File 'lib/google/apis/translate_v3/classes.rb', line 1901

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



1899
1900
1901
# File 'lib/google/apis/translate_v3/classes.rb', line 1899

def reference_sentence_pairs
  @reference_sentence_pairs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1906
1907
1908
# File 'lib/google/apis/translate_v3/classes.rb', line 1906

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