-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnumerology.rb
43 lines (39 loc) · 2.35 KB
/
numerology.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
$null
puts "Please enter your birthday in this format, MMDDYYYY."
birthdate = gets
def get_birth_path(birthdate)
number = birthdate[0].to_i + birthdate[1].to_i + birthdate[2].to_i + birthdate[3].to_i + birthdate[4].to_i + birthdate[5].to_i + birthdate[6].to_i + birthdate[7].to_i
puts number
if number > 9
number = number.to_s[0].to_i + number.to_s[1].to_i
puts number
end
return number
end
birth_path_number = get_birth_path(birthdate)
def get_message(birth_path_number)
case (birth_path_number.to_s)
when "1"
message = "Your numerology number is 1. One is the leader. The number one indicates the ability to stand alone, and is a strong vibration. Ruled by the Sun."
when "2"
message = "Your numerology number is 2. This is the mediator and peace-lover. The number two indicates the desire for harmony. It is a gentle, considerate, and sensitive vibration. Ruled by the Moon."
when "3"
message = "Your numerology number is 3. Number Three is a sociable, friendly, and outgoing vibration. Kind, positive, and optimistic. Three's enjoy life and have a good sense of humor. Ruled by Jupiter."
when "4"
message = "Your numerology number is 4. This is the worker. Practical, with a love of detail. Fours are trustworth, hard-working, and helpful. Ruled by Uranus."
when "5"
message = "Your numerology number is 5. This is the freedom lover. The number five is an intellectual vibration. These are 'idea' people with a love of variety and the ability to adapt to most situations. Ruled by Mercury."
when "6"
message = "Your numerology number is 6. This is the peace lover. The number six is a loving, stable, and harmonious vibration. Ruled by Venus."
when "7"
message = "Your numerology number is 7. This is the deep thinker. The number seven is a spiritual vibration. These people are not very attached to material things, are introspective, and generally quiet. Ruled by Neptune."
when "8"
message = "Your numerology number is 8. This is the manager. Number eight is a strong, successful, and material vibration. Ruled by Saturn."
when "9"
message = "Your numerology number is 9. This is the teacher. Number nine is a tolerant, somewhat impractical, and sympathetic vibration. Ruled by Mars."
else
message = "You cracked the system! Kudos. You are greater than any number. Ruled by the galaxy."
end
end
message = get_message(birth_path_number)
puts message