Class: Google::Apis::TranslateV3::ReferenceSentencePairList
- Inherits:
-
Object
- Object
- Google::Apis::TranslateV3::ReferenceSentencePairList
- 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
-
#reference_sentence_pairs ⇒ Array<Google::Apis::TranslateV3::ReferenceSentencePair>
Reference sentence pairs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReferenceSentencePairList
constructor
A new instance of ReferenceSentencePairList.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_pairs ⇒ Array<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 |