lib/phrase/models/invitation.rb in phrase-2.6.0 vs lib/phrase/models/invitation.rb in phrase-2.7.0

- old
+ new

@@ -12,10 +12,12 @@ attr_accessor :projects attr_accessor :locales + attr_accessor :teams + attr_accessor :default_locale_codes attr_accessor :permissions attr_accessor :locale_ids @@ -26,12 +28,10 @@ attr_accessor :accepted_at attr_accessor :spaces - attr_accessor :teams - attr_accessor :project_role # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -39,18 +39,18 @@ :'email' => :'email', :'role' => :'role', :'state' => :'state', :'projects' => :'projects', :'locales' => :'locales', + :'teams' => :'teams', :'default_locale_codes' => :'default_locale_codes', :'permissions' => :'permissions', :'locale_ids' => :'locale_ids', :'created_at' => :'created_at', :'updated_at' => :'updated_at', :'accepted_at' => :'accepted_at', :'spaces' => :'spaces', - :'teams' => :'teams', :'project_role' => :'project_role' } end # Attribute type mapping. @@ -60,18 +60,18 @@ :'email' => :'String', :'role' => :'String', :'state' => :'String', :'projects' => :'Array<ProjectShort>', :'locales' => :'Array<LocalePreview>', + :'teams' => :'Array<TeamShort>', :'default_locale_codes' => :'Array<String>', :'permissions' => :'Object', :'locale_ids' => :'Array<String>', :'created_at' => :'DateTime', :'updated_at' => :'DateTime', :'accepted_at' => :'DateTime', - :'spaces' => :'Array<MemberSpaces>', - :'teams' => :'Array<Items>', + :'spaces' => :'Array<Space>', :'project_role' => :'Array<MemberProjectDetailProjectRoles>' } end # List of attributes with nullable: true @@ -121,10 +121,16 @@ if (value = attributes[:'locales']).is_a?(Array) self.locales = value end end + if attributes.key?(:'teams') + if (value = attributes[:'teams']).is_a?(Array) + self.teams = value + end + end + if attributes.key?(:'default_locale_codes') if (value = attributes[:'default_locale_codes']).is_a?(Array) self.default_locale_codes = value end end @@ -155,16 +161,10 @@ if (value = attributes[:'spaces']).is_a?(Array) self.spaces = value end end - if attributes.key?(:'teams') - if (value = attributes[:'teams']).is_a?(Array) - self.teams = value - end - end - if attributes.key?(:'project_role') if (value = attributes[:'project_role']).is_a?(Array) self.project_role = value end end @@ -192,18 +192,18 @@ email == o.email && role == o.role && state == o.state && projects == o.projects && locales == o.locales && + teams == o.teams && default_locale_codes == o.default_locale_codes && permissions == o.permissions && locale_ids == o.locale_ids && created_at == o.created_at && updated_at == o.updated_at && accepted_at == o.accepted_at && spaces == o.spaces && - teams == o.teams && project_role == o.project_role end # @see the `==` method # @param [Object] Object to be compared @@ -212,10 +212,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [id, email, role, state, projects, locales, default_locale_codes, permissions, locale_ids, created_at, updated_at, accepted_at, spaces, teams, project_role].hash + [id, email, role, state, projects, locales, teams, default_locale_codes, permissions, locale_ids, created_at, updated_at, accepted_at, spaces, project_role].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself