:lat, :lng! ! def initialize(attributes)! @lat, @lng = attributes.values_at(:lat, :lng)! end! end! ! loc1 = GeoLocation.new(:lat => 123, :lng => 321)! loc2 = GeoLocation.new(:lat => 123, :lng => 321)! ! loc1 == loc2 # true! ! loc1.inspect! => #<GeoLocation lat=123 lng=321>