Class: AIXM::Component::Geometry::Border
- Defined in:
- lib/aixm/component/geometry/border.rb
Overview
Instance Attribute Summary collapse
-
#name ⇒ Object
Name of the border.
Attributes inherited from Point
Instance Method Summary collapse
-
#initialize(xy:, name:) ⇒ Border
constructor
See the cheat sheet for examples on how to create instances of this class.
- #inspect ⇒ String
Methods inherited from Point
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:, name:) ⇒ Border
See the cheat sheet for examples on how to create instances of this class.
29 30 31 32 |
# File 'lib/aixm/component/geometry/border.rb', line 29 def initialize(xy:, name:) super(xy: xy) self.name = name end |
Instance Attribute Details
#name ⇒ String #name=(value) ⇒ Object
Name of the border
25 26 27 |
# File 'lib/aixm/component/geometry/border.rb', line 25 def name @name end |
Instance Method Details
#inspect ⇒ String
35 36 37 |
# File 'lib/aixm/component/geometry/border.rb', line 35 def inspect %Q(#<#{self.class} xy="#{xy}" name=#{name.inspect}>) end |