Class: VORuby::STC::V1_10::STC::CoordEquinox

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

Overview

Coordinate equinox: Byear or Jyear with at least one decimal; do not use in conjunction with ICRS

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(equinox) ⇒ CoordEquinox

Returns a new instance of CoordEquinox.



59
60
61
# File 'lib/voruby/stc/1.10/stc.rb', line 59

def initialize(equinox)
  self.value = equinox
end

Instance Attribute Details

#valueObject

Returns the value of attribute value.



57
58
59
# File 'lib/voruby/stc/1.10/stc.rb', line 57

def value
  @value
end

Instance Method Details

#==(c) ⇒ Object



72
73
74
# File 'lib/voruby/stc/1.10/stc.rb', line 72

def ==(c)
  self.value == c.value
end

#to_sObject



68
69
70
# File 'lib/voruby/stc/1.10/stc.rb', line 68

def to_s
  self.value.to_s
end