lib/hubspot/codegen/cms/domains/models/next_page.rb in hubspot-api-client-17.2.0 vs lib/hubspot/codegen/cms/domains/models/next_page.rb in hubspot-api-client-18.0.0

- old
+ new

@@ -1,7 +1,7 @@ =begin -#Domains +#CMS Domains #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) The version of the OpenAPI document: v3 @@ -15,19 +15,19 @@ module Hubspot module Cms module Domains class NextPage - attr_accessor :after - attr_accessor :link + attr_accessor :after + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'after' => :'after', - :'link' => :'link' + :'link' => :'link', + :'after' => :'after' } end # Returns all the JSON keys this model knows about def self.acceptable_attributes @@ -35,12 +35,12 @@ end # Attribute type mapping. def self.openapi_types { - :'after' => :'String', - :'link' => :'String' + :'link' => :'String', + :'after' => :'String' } end # List of attributes with nullable: true def self.openapi_nullable @@ -61,17 +61,17 @@ fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Cms::Domains::NextPage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - if attributes.key?(:'after') - self.after = attributes[:'after'] - end - if attributes.key?(:'link') self.link = attributes[:'link'] end + + if attributes.key?(:'after') + self.after = attributes[:'after'] + 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 @@ -93,12 +93,12 @@ # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && - after == o.after && - link == o.link + link == o.link && + after == o.after end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -106,10 +106,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [after, link].hash + [link, after].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself