Class: VORuby::STC::V1_10::Coords::CoordsType
- Inherits:
-
Object
- Object
- VORuby::STC::V1_10::Coords::CoordsType
- Defined in:
- lib/voruby/stc/1.10/coords.rb
Overview
The generic coordsType
Direct Known Subclasses
Instance Attribute Summary collapse
-
#coord_system_id ⇒ Object
Returns the value of attribute coord_system_id.
-
#coordinates ⇒ Object
Returns the value of attribute coordinates.
Instance Method Summary collapse
- #==(c) ⇒ Object
-
#initialize(options = {}) ⇒ CoordsType
constructor
A new instance of CoordsType.
Constructor Details
#initialize(options = {}) ⇒ CoordsType
Returns a new instance of CoordsType.
1997 1998 1999 2000 |
# File 'lib/voruby/stc/1.10/coords.rb', line 1997 def initialize(={}) raise_argument_required_error('coord system id') if !.has_key?(:coord_system_id) .each { |key, value| send("#{key}=", value) } end |
Instance Attribute Details
#coord_system_id ⇒ Object
Returns the value of attribute coord_system_id.
1995 1996 1997 |
# File 'lib/voruby/stc/1.10/coords.rb', line 1995 def coord_system_id @coord_system_id end |
#coordinates ⇒ Object
Returns the value of attribute coordinates.
1995 1996 1997 |
# File 'lib/voruby/stc/1.10/coords.rb', line 1995 def coordinates @coordinates end |
Instance Method Details
#==(c) ⇒ Object
2019 2020 2021 2022 |
# File 'lib/voruby/stc/1.10/coords.rb', line 2019 def ==(c) self.coord_system_id == c.coord_system_id and self.coordinates == c.coordinates end |