lib/phrase/models/distribution_create_parameters.rb in phrase-2.7.1 vs lib/phrase/models/distribution_create_parameters.rb in phrase-2.7.2

- old
+ new

@@ -15,10 +15,13 @@ attr_accessor :locale_ids # Additional formatting and render options. Only <code>enclose_in_cdata</code> is available for platform <code>android</code>. attr_accessor :format_options + # Use fallback locale if there is no translation in the current locale. + attr_accessor :fallback_locales_enabled + # Indicates whether to fallback to non regional locale when locale can not be found attr_accessor :fallback_to_non_regional_locale # Indicates whether to fallback to projects default locale when locale can not be found attr_accessor :fallback_to_default_locale @@ -32,10 +35,11 @@ :'name' => :'name', :'project_id' => :'project_id', :'platforms' => :'platforms', :'locale_ids' => :'locale_ids', :'format_options' => :'format_options', + :'fallback_locales_enabled' => :'fallback_locales_enabled', :'fallback_to_non_regional_locale' => :'fallback_to_non_regional_locale', :'fallback_to_default_locale' => :'fallback_to_default_locale', :'use_last_reviewed_version' => :'use_last_reviewed_version' } end @@ -46,10 +50,11 @@ :'name' => :'String', :'project_id' => :'String', :'platforms' => :'Array<String>', :'locale_ids' => :'Array<String>', :'format_options' => :'Hash<String, String>', + :'fallback_locales_enabled' => :'Boolean', :'fallback_to_non_regional_locale' => :'Boolean', :'fallback_to_default_locale' => :'Boolean', :'use_last_reviewed_version' => :'Boolean' } end @@ -99,10 +104,14 @@ if (value = attributes[:'format_options']).is_a?(Hash) self.format_options = value end end + if attributes.key?(:'fallback_locales_enabled') + self.fallback_locales_enabled = attributes[:'fallback_locales_enabled'] + end + if attributes.key?(:'fallback_to_non_regional_locale') self.fallback_to_non_regional_locale = attributes[:'fallback_to_non_regional_locale'] end if attributes.key?(:'fallback_to_default_locale') @@ -135,10 +144,11 @@ name == o.name && project_id == o.project_id && platforms == o.platforms && locale_ids == o.locale_ids && format_options == o.format_options && + fallback_locales_enabled == o.fallback_locales_enabled && fallback_to_non_regional_locale == o.fallback_to_non_regional_locale && fallback_to_default_locale == o.fallback_to_default_locale && use_last_reviewed_version == o.use_last_reviewed_version end @@ -149,10 +159,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [name, project_id, platforms, locale_ids, format_options, fallback_to_non_regional_locale, fallback_to_default_locale, use_last_reviewed_version].hash + [name, project_id, platforms, locale_ids, format_options, fallback_locales_enabled, fallback_to_non_regional_locale, fallback_to_default_locale, use_last_reviewed_version].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself