Method: UltracartClient::BrowserUserAgent#==

Defined in:
lib/ultracart_api/models/browser_user_agent.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



104
105
106
107
108
109
110
111
# File 'lib/ultracart_api/models/browser_user_agent.rb', line 104

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      family == o.family &&
      major == o.major &&
      minor == o.minor &&
      patch == o.patch
end