Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sockets - Grace #40

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
a08d1d2
created planet.rb file with planet class, reader attribute, and initi…
gracemshea Feb 26, 2019
3fe3937
added main.rb file with empty main method and summary method to plane…
gracemshea Feb 26, 2019
800a9af
added argument errors to planet.rb for mass_kg and distance_from_sun_km
gracemshea Feb 26, 2019
b7e2e8b
added country music planets to my main.rb
gracemshea Feb 26, 2019
eb24312
created solar_system.rb with class and ininitialize method
gracemshea Feb 26, 2019
bd10d6f
added solar_system.new to main.rb, added current planets.
gracemshea Feb 26, 2019
55c2de0
attr_reader and add_planet method updated on solar_system.rb
gracemshea Feb 26, 2019
2d129b4
get_info_new_planet method written...this should help.
gracemshea Feb 26, 2019
c54eb55
added list_planets to solar_system.rb
gracemshea Feb 26, 2019
90ffcd9
working on list of options for the user. planning to call each method…
gracemshea Feb 26, 2019
d35a93e
find planet method, not sure it works yet
gracemshea Feb 26, 2019
c82f4dd
working on loop do and solar system methods. added get_planet_name an…
gracemshea Feb 26, 2019
139928d
added way to reject invalid input to my menu - thanks, google! finish…
gracemshea Feb 26, 2019
8b56841
tidying up, removed require pry on files
gracemshea Feb 26, 2019
4fb796c
tidying
gracemshea Feb 26, 2019
2937959
fixed Planet.new syntax
gracemshea Feb 27, 2019
4d47d7e
gave loop greeting
gracemshea Feb 27, 2019
640474d
making tweaks, searching for source of error within spelling or syntax
gracemshea Feb 27, 2019
c4aa48f
fixed reba planet to have enough arguments
gracemshea Feb 27, 2019
a106899
added line 33 on main to set local variable input
gracemshea Feb 27, 2019
c214304
fixed error in retrieving planet info
gracemshea Mar 12, 2019
a96b0f7
fixed error in creating new planet
gracemshea Mar 12, 2019
aa35e37
debugging the distance calculator method, stopping point
gracemshea Mar 12, 2019
aa4ca3f
saving files helps
gracemshea Mar 12, 2019
f625e3b
fixed the return raise argument syntax errors
gracemshea Mar 12, 2019
c884b3c
removed awkward variable
gracemshea Mar 12, 2019
ef5a972
fixed distance_between error
gracemshea Mar 12, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
working on loop do and solar system methods. added get_planet_name an…
…d find_planet
gracemshea committed Feb 26, 2019
commit c82f4dd37df745d1ba89e9f1c30b46ae0b8759a7
7 changes: 6 additions & 1 deletion main.rb
Original file line number Diff line number Diff line change
@@ -32,10 +32,15 @@ def main
#prompt to enter selection from above options
case
when input == "1"
puts solar_system.list_planets
when input == "2"
planet = solar_system.get_planet_name
puts planet.summary
when input == "3"
solar_system.add_a_planet
puts "\n...Entered into system. Thank You."
when input == "4"
when input == "5"
exit
# when input is exit
# when input is invalid
end