Class: Astro::Moon::Phase
- Inherits:
-
Struct
- Object
- Struct
- Astro::Moon::Phase
- Defined in:
- lib/astro/moon.rb
Overview
a container structure for phase() return value. accessors:
phase - moon phase, 0 or 1 for new moon, 0.5 for full moon, etc
illumination - moon illumination, 0.0 .. 0.1
age - moon age, in days from the most recent new moon
distance - moon distance from earth, in kilometers
angle - moon angle
sun_distance - sun distance from earth, in kilometers
sun_angle - sun angle
Instance Attribute Summary collapse
-
#age ⇒ Object
Returns the value of attribute age.
-
#angle ⇒ Object
Returns the value of attribute angle.
-
#distance ⇒ Object
Returns the value of attribute distance.
-
#illumination ⇒ Object
Returns the value of attribute illumination.
-
#phase ⇒ Object
Returns the value of attribute phase.
-
#sun_angle ⇒ Object
Returns the value of attribute sun_angle.
-
#sun_distance ⇒ Object
Returns the value of attribute sun_distance.
Instance Attribute Details
#age ⇒ Object
Returns the value of attribute age
22 23 24 |
# File 'lib/astro/moon.rb', line 22 def age @age end |
#angle ⇒ Object
Returns the value of attribute angle
22 23 24 |
# File 'lib/astro/moon.rb', line 22 def angle @angle end |
#distance ⇒ Object
Returns the value of attribute distance
22 23 24 |
# File 'lib/astro/moon.rb', line 22 def distance @distance end |
#illumination ⇒ Object
Returns the value of attribute illumination
22 23 24 |
# File 'lib/astro/moon.rb', line 22 def illumination @illumination end |
#phase ⇒ Object
Returns the value of attribute phase
22 23 24 |
# File 'lib/astro/moon.rb', line 22 def phase @phase end |
#sun_angle ⇒ Object
Returns the value of attribute sun_angle
22 23 24 |
# File 'lib/astro/moon.rb', line 22 def sun_angle @sun_angle end |
#sun_distance ⇒ Object
Returns the value of attribute sun_distance
22 23 24 |
# File 'lib/astro/moon.rb', line 22 def sun_distance @sun_distance end |