lib/aixm/component/geometry/point.rb in aixm-1.1.0 vs lib/aixm/component/geometry/point.rb in aixm-1.2.0
- old
+ new
@@ -18,12 +18,19 @@
# @!method geometry
# @return [AIXM::Component::Geometry] geometry this segment belongs to
belongs_to :geometry, as: :segment
- # @return [AIXM::XY] (starting) point
+ # (Starting) point
+ #
+ # @overload xy
+ # @return [AIXM::XY]
+ # @overload xy=(value)
+ # @param value [AIXM::XY]
attr_reader :xy
+ # See the {cheat sheet}[AIXM::Component::Geometry::Point] for examples
+ # on how to create instances of this class.
def initialize(xy:)
self.xy = xy
end
# @return [String]