lib/phrase/models/icu_skeleton_parameters.rb in phrase-2.5.1 vs lib/phrase/models/icu_skeleton_parameters.rb in phrase-2.6.0
- old
+ new
@@ -6,27 +6,32 @@
attr_accessor :content
# Locale codes
attr_accessor :locale_codes
+ # Keep the content and add missing plural forms for each locale
+ attr_accessor :keep_content
+
# Indicates whether the zero form should be included or excluded in the returned skeletons
attr_accessor :zero_form_enabled
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'content' => :'content',
:'locale_codes' => :'locale_codes',
+ :'keep_content' => :'keep_content',
:'zero_form_enabled' => :'zero_form_enabled'
}
end
# Attribute type mapping.
def self.openapi_types
{
:'content' => :'String',
:'locale_codes' => :'Array<String>',
+ :'keep_content' => :'Boolean',
:'zero_form_enabled' => :'Boolean'
}
end
# List of attributes with nullable: true
@@ -58,10 +63,14 @@
if (value = attributes[:'locale_codes']).is_a?(Array)
self.locale_codes = value
end
end
+ if attributes.key?(:'keep_content')
+ self.keep_content = attributes[:'keep_content']
+ end
+
if attributes.key?(:'zero_form_enabled')
self.zero_form_enabled = attributes[:'zero_form_enabled']
end
end
@@ -83,10 +92,11 @@
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
content == o.content &&
locale_codes == o.locale_codes &&
+ keep_content == o.keep_content &&
zero_form_enabled == o.zero_form_enabled
end
# @see the `==` method
# @param [Object] Object to be compared
@@ -95,10 +105,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [content, locale_codes, zero_form_enabled].hash
+ [content, locale_codes, keep_content, zero_form_enabled].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself