lib/phrase/models/account.rb in phrase-2.0.0 vs lib/phrase/models/account.rb in phrase-2.1.0

- old
+ new

@@ -12,19 +12,22 @@ attr_accessor :created_at attr_accessor :updated_at + attr_accessor :company_logo_url + # 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' + :'updated_at' => :'updated_at', + :'company_logo_url' => :'company_logo_url' } end # Attribute type mapping. def self.openapi_types @@ -32,11 +35,12 @@ :'id' => :'String', :'name' => :'String', :'slug' => :'String', :'company' => :'String', :'created_at' => :'DateTime', - :'updated_at' => :'DateTime' + :'updated_at' => :'DateTime', + :'company_logo_url' => :'String' } end # List of attributes with nullable: true def self.openapi_nullable @@ -80,10 +84,14 @@ end if attributes.key?(:'updated_at') self.updated_at = attributes[:'updated_at'] end + + if attributes.key?(:'company_logo_url') + self.company_logo_url = attributes[:'company_logo_url'] + 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 @@ -105,11 +113,12 @@ id == o.id && name == o.name && slug == o.slug && company == o.company && created_at == o.created_at && - updated_at == o.updated_at + updated_at == o.updated_at && + company_logo_url == o.company_logo_url end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -117,10 +126,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [id, name, slug, company, created_at, updated_at].hash + [id, name, slug, company, created_at, updated_at, company_logo_url].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself