Method: KatapultAPI::GetVirtualMachinePartCountryState#==

Defined in:
lib/katapult-ruby/models/get_virtual_machine_part_country_state.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



106
107
108
109
110
111
112
113
# File 'lib/katapult-ruby/models/get_virtual_machine_part_country_state.rb', line 106

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      id == o.id &&
      name == o.name &&
      code == o.code &&
      country == o.country
end