Method: UltracartClient::BrowserUserAgent#hash

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

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



121
122
123
# File 'lib/ultracart_api/models/browser_user_agent.rb', line 121

def hash
  [family, major, minor, patch].hash
end