Class: VORuby::STC::V1_10::Coords::CoordinateType
- Inherits:
-
Object
- Object
- VORuby::STC::V1_10::Coords::CoordinateType
- Includes:
- SerializableToXml
- Defined in:
- lib/voruby/stc/1.10/coords.rb
Overview
Abstract coordinate type; a concrete Coordinate consists of a Value, Error, Resolution, Size, and PixSize
Direct Known Subclasses
PixelCoordinate, ScalarCoordinateType, StringCoordinate, TimeCoordinate, Vector2Coordinate, Vector3Coordinate
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #==(c) ⇒ Object
-
#initialize(options) ⇒ CoordinateType
constructor
A new instance of CoordinateType.
Methods included from SerializableToXml
Constructor Details
#initialize(options) ⇒ CoordinateType
Returns a new instance of CoordinateType.
651 652 653 654 655 656 657 |
# File 'lib/voruby/stc/1.10/coords.rb', line 651 def initialize() if .is_a?(Hash) .each { |key, value| send("#{key}=", value) } else self.name = end end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
649 650 651 |
# File 'lib/voruby/stc/1.10/coords.rb', line 649 def name @name end |
Instance Method Details
#==(c) ⇒ Object
663 664 665 |
# File 'lib/voruby/stc/1.10/coords.rb', line 663 def ==(c) self.name == c.name end |