lib/phrase/models/invitation.rb in phrase-2.5.0 vs lib/phrase/models/invitation.rb in phrase-2.5.1
- old
+ new
@@ -26,10 +26,12 @@
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
{
@@ -44,10 +46,11 @@
:'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.
@@ -64,10 +67,11 @@
:'locale_ids' => :'Array<String>',
:'created_at' => :'DateTime',
:'updated_at' => :'DateTime',
:'accepted_at' => :'DateTime',
:'spaces' => :'Array<MemberSpaces>',
+ :'teams' => :'Array<Items>',
:'project_role' => :'Array<MemberProjectDetailProjectRoles>'
}
end
# List of attributes with nullable: true
@@ -151,10 +155,16 @@
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
@@ -189,10 +199,11 @@
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
@@ -201,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, project_role].hash
+ [id, email, role, state, projects, locales, default_locale_codes, permissions, locale_ids, created_at, updated_at, accepted_at, spaces, teams, 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