Class: Astroscript::HouseCusp
- Defined in:
- lib/astroscript/body/house_cusp.rb
Constant Summary
Constants inherited from Body
Body::ANGLES, Body::AVG_VELOCITY, Body::MAX_VELOCITY, Body::ORBS, Body::SPEED_ORDER, Body::STATIONARY_VELOCITY
Instance Attribute Summary collapse
-
#house ⇒ Object
readonly
Returns the value of attribute house.
Attributes inherited from Body
#abbr, #altitude, #antipode, #azimuth, #calc, #decl, #distance, #harmonic, #hdist, #hlat, #hlon, #hvel, #lat, #ra, #velocity
Instance Method Summary collapse
- #calculate! ⇒ Object
-
#initialize(house, calc) ⇒ HouseCusp
constructor
A new instance of HouseCusp.
- #name ⇒ Object
- #symbol ⇒ Object
Methods inherited from Body
#*, #==, #closer_to_sun?, #decan, #distance_to_sun, #duad, #dwad, #element, #element_sym, #feminine?, #flip, #flip!, #gate, #handle, #harmonic_sign, #harmonic_signs, #harmonize, #harmonize!, #in_detriment?, #in_domicile?, #in_exaltation?, #in_fall?, #inner?, #inspect, #is_angle?, #lon, #luminary?, #masculine?, #meridian_degree, #midpoint?, #modality, #navamsha, #outer?, #pentan, #personal_angle?, phase, #prefix, #prime_degree, #print, #radix, #relative_velocity, #retrograde?, #ruler, #sign, #sign_and_house, #sign_i, #sign_sym, #speed_order, #stationary?, #subduad, #subdwad, #subpentan, #to_dms, #to_json, #to_s, #transit!, #transit?, #triple_harmonic_signs, #yang?, #yin?
Constructor Details
#initialize(house, calc) ⇒ HouseCusp
Returns a new instance of HouseCusp.
7 8 9 10 11 |
# File 'lib/astroscript/body/house_cusp.rb', line 7 def initialize(house, calc) @house = house @abbr = :"c#{@house}" super(@abbr, calc) end |
Instance Attribute Details
#house ⇒ Object (readonly)
Returns the value of attribute house.
5 6 7 |
# File 'lib/astroscript/body/house_cusp.rb', line 5 def house @house end |
Instance Method Details
#calculate! ⇒ Object
13 14 15 16 17 18 |
# File 'lib/astroscript/body/house_cusp.rb', line 13 def calculate! @lon = calc.house_cusps[@house - 1] update! @lon = calc.flip(@lon) if antipode self end |
#name ⇒ Object
24 25 26 |
# File 'lib/astroscript/body/house_cusp.rb', line 24 def name "House Cusp #{numeral}" end |
#symbol ⇒ Object
20 21 22 |
# File 'lib/astroscript/body/house_cusp.rb', line 20 def symbol @symbol = "C#{house}" end |