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

- old
+ new

@@ -4,39 +4,39 @@ class AccountDetails attr_accessor :id attr_accessor :name + attr_accessor :slug + attr_accessor :company attr_accessor :created_at attr_accessor :updated_at - attr_accessor :slug - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'id' => :'id', :'name' => :'name', + :'slug' => :'slug', :'company' => :'company', :'created_at' => :'created_at', - :'updated_at' => :'updated_at', - :'slug' => :'slug' + :'updated_at' => :'updated_at' } end # Attribute type mapping. def self.openapi_types { :'id' => :'String', :'name' => :'String', + :'slug' => :'String', :'company' => :'String', :'created_at' => :'DateTime', - :'updated_at' => :'DateTime', - :'slug' => :'String' + :'updated_at' => :'DateTime' } end # List of attributes with nullable: true def self.openapi_nullable @@ -73,10 +73,14 @@ if attributes.key?(:'name') self.name = attributes[:'name'] end + if attributes.key?(:'slug') + self.slug = attributes[:'slug'] + end + if attributes.key?(:'company') self.company = attributes[:'company'] end if attributes.key?(:'created_at') @@ -84,14 +88,10 @@ end if attributes.key?(:'updated_at') self.updated_at = attributes[:'updated_at'] end - - if attributes.key?(:'slug') - self.slug = attributes[:'slug'] - end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties @@ -110,14 +110,14 @@ def ==(o) return true if self.equal?(o) self.class == o.class && id == o.id && name == o.name && + slug == o.slug && company == o.company && created_at == o.created_at && - updated_at == o.updated_at && - slug == o.slug + updated_at == o.updated_at end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -125,10 +125,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [id, name, company, created_at, updated_at, slug].hash + [id, name, slug, company, 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