lib/phrase/models/project.rb in phrase-2.4.0 vs lib/phrase/models/project.rb in phrase-2.5.0
- old
+ new
@@ -14,10 +14,12 @@
attr_accessor :account
attr_accessor :space
+ attr_accessor :point_of_contact
+
attr_accessor :created_at
attr_accessor :updated_at
# Attribute mapping from ruby-style variable name to JSON key.
@@ -28,10 +30,11 @@
:'slug' => :'slug',
:'main_format' => :'main_format',
:'project_image_url' => :'project_image_url',
:'account' => :'account',
:'space' => :'space',
+ :'point_of_contact' => :'point_of_contact',
:'created_at' => :'created_at',
:'updated_at' => :'updated_at'
}
end
@@ -43,10 +46,11 @@
:'slug' => :'String',
:'main_format' => :'String',
:'project_image_url' => :'String',
:'account' => :'Account',
:'space' => :'Space1',
+ :'point_of_contact' => :'UserPreview',
:'created_at' => :'DateTime',
:'updated_at' => :'DateTime'
}
end
@@ -97,10 +101,14 @@
if attributes.key?(:'space')
self.space = attributes[:'space']
end
+ if attributes.key?(:'point_of_contact')
+ self.point_of_contact = attributes[:'point_of_contact']
+ end
+
if attributes.key?(:'created_at')
self.created_at = attributes[:'created_at']
end
if attributes.key?(:'updated_at')
@@ -131,10 +139,11 @@
slug == o.slug &&
main_format == o.main_format &&
project_image_url == o.project_image_url &&
account == o.account &&
space == o.space &&
+ point_of_contact == o.point_of_contact &&
created_at == o.created_at &&
updated_at == o.updated_at
end
# @see the `==` method
@@ -144,10 +153,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [id, name, slug, main_format, project_image_url, account, space, created_at, updated_at].hash
+ [id, name, slug, main_format, project_image_url, account, space, point_of_contact, created_at, updated_at].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself