Class: AIXM::Component::Geometry::Point
- Defined in:
- lib/aixm/component/geometry/point.rb
Overview
Instance Attribute Summary collapse
-
#xy ⇒ Object
(Starting) point.
Instance Method Summary collapse
-
#geometry ⇒ AIXM::Component::Geometry
Geometry this segment belongs to.
-
#initialize(xy:) ⇒ Point
constructor
See the cheat sheet for examples on how to create instances of this class.
- #inspect ⇒ String
Methods included from AIXM::Concerns::XMLBuilder
#build_fragment, #to_uid, #to_xml
Methods included from AIXM::Concerns::Memoize
Methods included from AIXM::Concerns::Association
Constructor Details
#initialize(xy:) ⇒ Point
See the cheat sheet for examples on how to create instances of this class.
34 35 36 |
# File 'lib/aixm/component/geometry/point.rb', line 34 def initialize(xy:) self.xy = xy end |
Instance Attribute Details
Instance Method Details
#geometry ⇒ AIXM::Component::Geometry
Returns geometry this segment belongs to.
22 |
# File 'lib/aixm/component/geometry/point.rb', line 22 belongs_to :geometry, as: :segment |
#inspect ⇒ String
39 40 41 |
# File 'lib/aixm/component/geometry/point.rb', line 39 def inspect %Q(#<#{self.class} xy="#{xy}">) end |