lib/phrase/models/job_locale.rb in phrase-1.0.9 vs lib/phrase/models/job_locale.rb in phrase-1.0.10
- old
+ new
@@ -8,27 +8,31 @@
attr_accessor :locale
attr_accessor :users
+ attr_accessor :completed
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'id' => :'id',
:'job' => :'job',
:'locale' => :'locale',
- :'users' => :'users'
+ :'users' => :'users',
+ :'completed' => :'completed'
}
end
# Attribute type mapping.
def self.openapi_types
{
:'id' => :'String',
:'job' => :'JobPreview',
:'locale' => :'LocalePreview',
- :'users' => :'Array<UserPreview>'
+ :'users' => :'Array<UserPreview>',
+ :'completed' => :'Boolean'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
@@ -66,10 +70,14 @@
if attributes.key?(:'users')
if (value = attributes[:'users']).is_a?(Array)
self.users = value
end
end
+
+ if attributes.key?(:'completed')
+ self.completed = attributes[:'completed']
+ 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
@@ -89,11 +97,12 @@
return true if self.equal?(o)
self.class == o.class &&
id == o.id &&
job == o.job &&
locale == o.locale &&
- users == o.users
+ users == o.users &&
+ completed == o.completed
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -101,10 +110,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [id, job, locale, users].hash
+ [id, job, locale, users, completed].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself