Class: VORuby::STC::V1_10::STC::CoordEquinox
- Inherits:
-
Object
- Object
- VORuby::STC::V1_10::STC::CoordEquinox
- 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
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #==(c) ⇒ Object
-
#initialize(equinox) ⇒ CoordEquinox
constructor
A new instance of CoordEquinox.
- #to_s ⇒ Object
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
#value ⇒ Object
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_s ⇒ Object
68 69 70 |
# File 'lib/voruby/stc/1.10/stc.rb', line 68 def to_s self.value.to_s end |