lib/phrase/models/project.rb in phrase-1.0.2 vs lib/phrase/models/project.rb in phrase-1.0.3

- old
+ new

@@ -4,10 +4,12 @@ class Project attr_accessor :id attr_accessor :name + attr_accessor :slug + attr_accessor :main_format attr_accessor :project_image_url attr_accessor :account @@ -19,10 +21,11 @@ # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'id' => :'id', :'name' => :'name', + :'slug' => :'slug', :'main_format' => :'main_format', :'project_image_url' => :'project_image_url', :'account' => :'account', :'created_at' => :'created_at', :'updated_at' => :'updated_at' @@ -32,10 +35,11 @@ # Attribute type mapping. def self.openapi_types { :'id' => :'String', :'name' => :'String', + :'slug' => :'String', :'main_format' => :'String', :'project_image_url' => :'String', :'account' => :'Account', :'created_at' => :'DateTime', :'updated_at' => :'DateTime' @@ -69,10 +73,14 @@ if attributes.key?(:'name') self.name = attributes[:'name'] end + if attributes.key?(:'slug') + self.slug = attributes[:'slug'] + end + if attributes.key?(:'main_format') self.main_format = attributes[:'main_format'] end if attributes.key?(:'project_image_url') @@ -110,10 +118,11 @@ def ==(o) return true if self.equal?(o) self.class == o.class && id == o.id && name == o.name && + slug == o.slug && main_format == o.main_format && project_image_url == o.project_image_url && account == o.account && created_at == o.created_at && updated_at == o.updated_at @@ -126,10 +135,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [id, name, main_format, project_image_url, account, created_at, updated_at].hash + [id, name, slug, main_format, project_image_url, account, 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