lib/hubspot/codegen/crm/tickets/models/paging.rb in hubspot-api-client-8.0.1 vs lib/hubspot/codegen/crm/tickets/models/paging.rb in hubspot-api-client-9.0.0
- old
+ new
@@ -4,11 +4,11 @@
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: v3
Generated by: https://openapi-generator.tech
-OpenAPI Generator version: 4.2.3
+OpenAPI Generator version: 4.3.1
=end
require 'date'
@@ -16,21 +16,25 @@
module Crm
module Tickets
class Paging
attr_accessor :_next
+ attr_accessor :prev
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
- :'_next' => :'next'
+ :'_next' => :'next',
+ :'prev' => :'prev'
}
end
# Attribute type mapping.
def self.openapi_types
{
- :'_next' => :'NextPage'
+ :'_next' => :'NextPage',
+ :'prev' => :'PreviousPage'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
@@ -54,10 +58,14 @@
}
if attributes.key?(:'_next')
self._next = attributes[:'_next']
end
+
+ if attributes.key?(:'prev')
+ self.prev = attributes[:'prev']
+ 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
@@ -74,11 +82,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 &&
- _next == o._next
+ _next == o._next &&
+ prev == o.prev
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -86,10 +95,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [_next].hash
+ [_next, prev].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself