Class: AIXM::Component::Geometry::RhumbLine
- Defined in:
- lib/aixm/component/geometry/rhumb_line.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:) ⇒ RhumbLine
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:) ⇒ RhumbLine
See the cheat sheet for examples on how to create instances of this class.
34 35 36 |
# File 'lib/aixm/component/geometry/rhumb_line.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/rhumb_line.rb', line 22 belongs_to :geometry, as: :segment |
#inspect ⇒ String
39 40 41 |
# File 'lib/aixm/component/geometry/rhumb_line.rb', line 39 def inspect %Q(#<#{self.class} xy="#{xy}">) end |