Method: Fastly::AclEntry#==

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

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



144
145
146
147
148
149
150
151
# File 'lib/fastly/models/acl_entry.rb', line 144

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      negated == o.negated &&
      comment == o.comment &&
      ip == o.ip &&
      subnet == o.subnet
end