lib/phrase/models/translation_details.rb in phrase-2.25.0 vs lib/phrase/models/translation_details.rb in phrase-2.26.0
- old
+ new
@@ -26,10 +26,12 @@
attr_accessor :user
attr_accessor :word_count
+ attr_accessor :linked_translation
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'id' => :'id',
:'content' => :'content',
@@ -41,11 +43,12 @@
:'placeholders' => :'placeholders',
:'state' => :'state',
:'created_at' => :'created_at',
:'updated_at' => :'updated_at',
:'user' => :'user',
- :'word_count' => :'word_count'
+ :'word_count' => :'word_count',
+ :'linked_translation' => :'linked_translation'
}
end
# Attribute type mapping.
def self.openapi_types
@@ -60,11 +63,12 @@
:'placeholders' => :'Array<String>',
:'state' => :'String',
:'created_at' => :'DateTime',
:'updated_at' => :'DateTime',
:'user' => :'UserPreview',
- :'word_count' => :'Integer'
+ :'word_count' => :'Integer',
+ :'linked_translation' => :'TranslationParent'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
@@ -145,10 +149,14 @@
end
if attributes.key?(:'word_count')
self.word_count = attributes[:'word_count']
end
+
+ if attributes.key?(:'linked_translation')
+ self.linked_translation = attributes[:'linked_translation']
+ end
end
# Show invalid properties with the reasons. Usually used together with valid?
# @return Array for valid properties with the reasons
def list_invalid_properties
@@ -177,11 +185,12 @@
placeholders == o.placeholders &&
state == o.state &&
created_at == o.created_at &&
updated_at == o.updated_at &&
user == o.user &&
- word_count == o.word_count
+ word_count == o.word_count &&
+ linked_translation == o.linked_translation
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -189,10 +198,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [id, content, unverified, excluded, plural_suffix, key, locale, placeholders, state, created_at, updated_at, user, word_count].hash
+ [id, content, unverified, excluded, plural_suffix, key, locale, placeholders, state, created_at, updated_at, user, word_count, linked_translation].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself