Class: VORuby::STC::V1_30::GenericRefPosType
- Inherits:
-
ReferencePositionType
- Object
- ReferencePositionType
- VORuby::STC::V1_30::GenericRefPosType
- Defined in:
- lib/voruby/stc/1.30/stc.rb
Overview
Type for custom positions: specifies reference origin.
Instance Attribute Summary collapse
-
#gen_coordinate ⇒ Object
Returns the value of attribute gen_coordinate.
Class Method Summary collapse
Instance Method Summary collapse
- #==(r) ⇒ Object
-
#initialize(gen_coordinate) ⇒ GenericRefPosType
constructor
A new instance of GenericRefPosType.
- #to_xml(name = nil) ⇒ Object
Methods included from SerializableToXml
Constructor Details
#initialize(gen_coordinate) ⇒ GenericRefPosType
Returns a new instance of GenericRefPosType.
7294 7295 7296 |
# File 'lib/voruby/stc/1.30/stc.rb', line 7294 def initialize(gen_coordinate) self.gen_coordinate = gen_coordinate end |
Instance Attribute Details
#gen_coordinate ⇒ Object
Returns the value of attribute gen_coordinate.
7292 7293 7294 |
# File 'lib/voruby/stc/1.30/stc.rb', line 7292 def gen_coordinate @gen_coordinate end |
Class Method Details
.from_xml(xml) ⇒ Object
7317 7318 7319 7320 |
# File 'lib/voruby/stc/1.30/stc.rb', line 7317 def self.from_xml(xml) root = element_from(xml) self.new(xml_to_obj(root, GenCoordinate, true)) end |
Instance Method Details
#==(r) ⇒ Object
7304 7305 7306 |
# File 'lib/voruby/stc/1.30/stc.rb', line 7304 def ==(r) self.gen_coordinate == r.gen_coordinate end |
#to_xml(name = nil) ⇒ Object
7308 7309 7310 7311 7312 7313 7314 7315 |
# File 'lib/voruby/stc/1.30/stc.rb', line 7308 def to_xml(name=nil) el = element(name) el.add_element(self.gen_coordinate.to_xml) collapse_namespaces(el) el end |