Method: Fastly::LoggingAddressAndPort#==

Defined in:
lib/fastly/models/logging_address_and_port.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



90
91
92
93
94
95
# File 'lib/fastly/models/logging_address_and_port.rb', line 90

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      address == o.address &&
      port == o.port
end