lib/phrase/models/job_locale.rb in phrase-2.8.3 vs lib/phrase/models/job_locale.rb in phrase-2.8.7

- old
+ new

@@ -8,10 +8,12 @@ attr_accessor :locale attr_accessor :users + attr_accessor :teams + attr_accessor :completed attr_accessor :translation_completed_at attr_accessor :review_completed_at @@ -21,10 +23,11 @@ { :'id' => :'id', :'job' => :'job', :'locale' => :'locale', :'users' => :'users', + :'teams' => :'teams', :'completed' => :'completed', :'translation_completed_at' => :'translation_completed_at', :'review_completed_at' => :'review_completed_at' } end @@ -33,11 +36,12 @@ def self.openapi_types { :'id' => :'String', :'job' => :'JobPreview', :'locale' => :'LocalePreview', - :'users' => :'Array<UserPreview>', + :'users' => :'Array<LocaleUserPreview>', + :'teams' => :'Array<LocaleTeamPreview>', :'completed' => :'Boolean', :'translation_completed_at' => :'DateTime', :'review_completed_at' => :'DateTime' } end @@ -79,10 +83,16 @@ if (value = attributes[:'users']).is_a?(Array) self.users = value end end + if attributes.key?(:'teams') + if (value = attributes[:'teams']).is_a?(Array) + self.teams = value + end + end + if attributes.key?(:'completed') self.completed = attributes[:'completed'] end if attributes.key?(:'translation_completed_at') @@ -114,10 +124,11 @@ self.class == o.class && id == o.id && job == o.job && locale == o.locale && users == o.users && + teams == o.teams && completed == o.completed && translation_completed_at == o.translation_completed_at && review_completed_at == o.review_completed_at end @@ -128,10 +139,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [id, job, locale, users, completed, translation_completed_at, review_completed_at].hash + [id, job, locale, users, teams, 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