af83/chouette-core

View on GitHub
app/lib/tom_tom/matrix/point.rb

Summary

Maintainability
A
0 mins
Test Coverage
module TomTom
  class Matrix
    class Point
      attr_reader :coordinates, :id

      def initialize(coordinates, id)
        @coordinates = coordinates
        @id = id
      end

      def ==(other)
        other.is_a?(self.class) &&
          @coordinates == other.coordinates &&
          @id == other.id
      end
    end
  end
end