lib/phrase/models/icu_skeleton_parameters.rb in phrase-2.10.0 vs lib/phrase/models/icu_skeleton_parameters.rb in phrase-2.11.0

- old
+ new

@@ -12,27 +12,32 @@ attr_accessor :keep_content # Indicates whether the zero form should be included or excluded in the returned skeletons attr_accessor :zero_form_enabled + # Strings supports two CLDR variants, when it comes to pluralization rules. \\ You can choose which one you want to use when constructing the skeletons. Possible values \\ are `legacy` and `cldr_41`. Default value is `legacy`. + attr_accessor :cldr_version + # 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' + :'zero_form_enabled' => :'zero_form_enabled', + :'cldr_version' => :'cldr_version' } end # Attribute type mapping. def self.openapi_types { :'content' => :'String', :'locale_codes' => :'Array<String>', :'keep_content' => :'Boolean', - :'zero_form_enabled' => :'Boolean' + :'zero_form_enabled' => :'Boolean', + :'cldr_version' => :'String' } end # List of attributes with nullable: true def self.openapi_nullable @@ -70,10 +75,14 @@ end if attributes.key?(:'zero_form_enabled') self.zero_form_enabled = attributes[:'zero_form_enabled'] end + + if attributes.key?(:'cldr_version') + self.cldr_version = attributes[:'cldr_version'] + 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 @@ -93,11 +102,12 @@ 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 + zero_form_enabled == o.zero_form_enabled && + cldr_version == o.cldr_version end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -105,10 +115,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [content, locale_codes, keep_content, zero_form_enabled].hash + [content, locale_codes, keep_content, zero_form_enabled, cldr_version].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself