lib/phrase/models/job_details1.rb in phrase-2.1.0 vs lib/phrase/models/job_details1.rb in phrase-2.2.0
- old
+ new
@@ -4,29 +4,33 @@
class JobDetails1
attr_accessor :owner
attr_accessor :job_tag_name
+ attr_accessor :source_locale
+
attr_accessor :locales
attr_accessor :keys
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'owner' => :'owner',
:'job_tag_name' => :'job_tag_name',
+ :'source_locale' => :'source_locale',
:'locales' => :'locales',
:'keys' => :'keys'
}
end
# Attribute type mapping.
def self.openapi_types
{
:'owner' => :'UserPreview',
:'job_tag_name' => :'String',
+ :'source_locale' => :'LocalePreview',
:'locales' => :'Array<LocalePreview>',
:'keys' => :'Array<KeyPreview>'
}
end
@@ -57,10 +61,14 @@
if attributes.key?(:'job_tag_name')
self.job_tag_name = attributes[:'job_tag_name']
end
+ if attributes.key?(:'source_locale')
+ self.source_locale = attributes[:'source_locale']
+ end
+
if attributes.key?(:'locales')
if (value = attributes[:'locales']).is_a?(Array)
self.locales = value
end
end
@@ -90,10 +98,11 @@
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
owner == o.owner &&
job_tag_name == o.job_tag_name &&
+ source_locale == o.source_locale &&
locales == o.locales &&
keys == o.keys
end
# @see the `==` method
@@ -103,10 +112,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [owner, job_tag_name, locales, keys].hash
+ [owner, job_tag_name, source_locale, locales, keys].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself