lib/phrase/models/job_locale.rb in phrase-1.0.14 vs lib/phrase/models/job_locale.rb in phrase-2.0.0

- old
+ new

@@ -10,29 +10,37 @@ attr_accessor :users attr_accessor :completed + attr_accessor :translation_completed_at + + attr_accessor :review_completed_at + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'id' => :'id', :'job' => :'job', :'locale' => :'locale', :'users' => :'users', - :'completed' => :'completed' + :'completed' => :'completed', + :'translation_completed_at' => :'translation_completed_at', + :'review_completed_at' => :'review_completed_at' } end # Attribute type mapping. def self.openapi_types { :'id' => :'String', :'job' => :'JobPreview', :'locale' => :'LocalePreview', :'users' => :'Array<UserPreview>', - :'completed' => :'Boolean' + :'completed' => :'Boolean', + :'translation_completed_at' => :'DateTime', + :'review_completed_at' => :'DateTime' } end # List of attributes with nullable: true def self.openapi_nullable @@ -74,10 +82,18 @@ end if attributes.key?(:'completed') self.completed = attributes[:'completed'] end + + if attributes.key?(:'translation_completed_at') + self.translation_completed_at = attributes[:'translation_completed_at'] + end + + if attributes.key?(:'review_completed_at') + self.review_completed_at = attributes[:'review_completed_at'] + 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 @@ -98,11 +114,13 @@ self.class == o.class && id == o.id && job == o.job && locale == o.locale && users == o.users && - completed == o.completed + completed == o.completed && + translation_completed_at == o.translation_completed_at && + review_completed_at == o.review_completed_at end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -110,10 +128,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [id, job, locale, users, completed].hash + [id, job, locale, users, completed, translation_completed_at, review_completed_at].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself