Class: VORuby::STC::V1_10::Coords::CoordsType

Inherits:
Object
  • Object
show all
Defined in:
lib/voruby/stc/1.10/coords.rb

Overview

The generic coordsType

Direct Known Subclasses

AstroCoordsType, PixelCoordsType

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options={})
  raise_argument_required_error('coord system id') if !options.has_key?(:coord_system_id)
  options.each { |key, value| send("#{key}=", value) }
end

Instance Attribute Details

#coord_system_idObject

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

#coordinatesObject

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