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

- old
+ new

@@ -10,10 +10,12 @@ attr_accessor :main_format attr_accessor :project_image_url + attr_accessor :media + attr_accessor :account attr_accessor :space attr_accessor :point_of_contact @@ -28,10 +30,11 @@ :'id' => :'id', :'name' => :'name', :'slug' => :'slug', :'main_format' => :'main_format', :'project_image_url' => :'project_image_url', + :'media' => :'media', :'account' => :'account', :'space' => :'space', :'point_of_contact' => :'point_of_contact', :'created_at' => :'created_at', :'updated_at' => :'updated_at' @@ -44,10 +47,11 @@ :'id' => :'String', :'name' => :'String', :'slug' => :'String', :'main_format' => :'String', :'project_image_url' => :'String', + :'media' => :'String', :'account' => :'Account', :'space' => :'Space1', :'point_of_contact' => :'UserPreview', :'created_at' => :'DateTime', :'updated_at' => :'DateTime' @@ -93,10 +97,14 @@ if attributes.key?(:'project_image_url') self.project_image_url = attributes[:'project_image_url'] end + if attributes.key?(:'media') + self.media = attributes[:'media'] + end + if attributes.key?(:'account') self.account = attributes[:'account'] end if attributes.key?(:'space') @@ -137,10 +145,11 @@ id == o.id && name == o.name && slug == o.slug && main_format == o.main_format && project_image_url == o.project_image_url && + media == o.media && account == o.account && space == o.space && point_of_contact == o.point_of_contact && created_at == o.created_at && updated_at == o.updated_at @@ -153,10 +162,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, point_of_contact, created_at, updated_at].hash + [id, name, slug, main_format, project_image_url, media, 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