Method: NucleusApi::PageAllocationComposition#==

Defined in:
lib/nucleus_api/models/page_allocation_composition.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



130
131
132
133
134
135
136
137
138
139
140
141
142
# File 'lib/nucleus_api/models/page_allocation_composition.rb', line 130

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      content == o.content &&
      first == o.first &&
      last == o.last &&
      number == o.number &&
      number_of_elements == o.number_of_elements &&
      size == o.size &&
      sort == o.sort &&
      total_elements == o.total_elements &&
      total_pages == o.total_pages
end