lib/phrase/models/member.rb in phrase-2.4.0 vs lib/phrase/models/member.rb in phrase-2.5.0
- old
+ new
@@ -6,44 +6,56 @@
attr_accessor :email
attr_accessor :username
+ attr_accessor :created_at
+
+ attr_accessor :last_activity_at
+
attr_accessor :role
attr_accessor :projects
attr_accessor :permissions
attr_accessor :default_locale_codes
+ attr_accessor :teams
+
attr_accessor :spaces
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'id' => :'id',
:'email' => :'email',
:'username' => :'username',
+ :'created_at' => :'created_at',
+ :'last_activity_at' => :'last_activity_at',
:'role' => :'role',
:'projects' => :'projects',
:'permissions' => :'permissions',
:'default_locale_codes' => :'default_locale_codes',
+ :'teams' => :'teams',
:'spaces' => :'spaces'
}
end
# Attribute type mapping.
def self.openapi_types
{
:'id' => :'String',
:'email' => :'String',
:'username' => :'String',
+ :'created_at' => :'DateTime',
+ :'last_activity_at' => :'DateTime',
:'role' => :'String',
:'projects' => :'Array<ProjectLocales>',
:'permissions' => :'Object',
:'default_locale_codes' => :'Array<String>',
+ :'teams' => :'Array<Team1>',
:'spaces' => :'Array<MemberSpaces>'
}
end
# List of attributes with nullable: true
@@ -77,10 +89,18 @@
if attributes.key?(:'username')
self.username = attributes[:'username']
end
+ if attributes.key?(:'created_at')
+ self.created_at = attributes[:'created_at']
+ end
+
+ if attributes.key?(:'last_activity_at')
+ self.last_activity_at = attributes[:'last_activity_at']
+ end
+
if attributes.key?(:'role')
self.role = attributes[:'role']
end
if attributes.key?(:'projects')
@@ -97,10 +117,16 @@
if (value = attributes[:'default_locale_codes']).is_a?(Array)
self.default_locale_codes = value
end
end
+ if attributes.key?(:'teams')
+ if (value = attributes[:'teams']).is_a?(Array)
+ self.teams = value
+ end
+ end
+
if attributes.key?(:'spaces')
if (value = attributes[:'spaces']).is_a?(Array)
self.spaces = value
end
end
@@ -125,14 +151,17 @@
return true if self.equal?(o)
self.class == o.class &&
id == o.id &&
email == o.email &&
username == o.username &&
+ created_at == o.created_at &&
+ last_activity_at == o.last_activity_at &&
role == o.role &&
projects == o.projects &&
permissions == o.permissions &&
default_locale_codes == o.default_locale_codes &&
+ teams == o.teams &&
spaces == o.spaces
end
# @see the `==` method
# @param [Object] Object to be compared
@@ -141,10 +170,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [id, email, username, role, projects, permissions, default_locale_codes, spaces].hash
+ [id, email, username, created_at, last_activity_at, role, projects, permissions, default_locale_codes, teams, spaces].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself