Top Level Namespace
Instance Method Summary collapse
- #goodbye ⇒ Object
- #list_friday_event_cielo ⇒ Object
- #list_friday_event_output ⇒ Object
- #list_saturday_event_cielo ⇒ Object
- #list_saturday_event_output ⇒ Object
- #menu ⇒ Object
- #what_day_cielo ⇒ Object
- #what_day_output ⇒ Object
Instance Method Details
#goodbye ⇒ Object
135 136 137 |
# File 'lib/club_hopper/cli.rb', line 135 def goodbye puts "See you next time for the hottest techno/house music events in NYC!!" end |
#list_friday_event_cielo ⇒ Object
91 92 93 94 95 96 97 |
# File 'lib/club_hopper/cli.rb', line 91 def list_friday_event_cielo puts "This Friday's Event at Cielo NYC!" @events = ClubHopper::Cielo.this_friday_cielo @events.each.with_index(1) do |event, i| puts "#{i}. #{event.date} - #{event.name} " end end |
#list_friday_event_output ⇒ Object
75 76 77 78 79 80 81 |
# File 'lib/club_hopper/cli.rb', line 75 def list_friday_event_output puts "This Friday's Event at Output Brooklyn!" @events = ClubHopper::Output.this_friday_output @events.each.with_index(1) do |event, i| puts "#{i}. #{event.name} - #{event.date}" end end |
#list_saturday_event_cielo ⇒ Object
101 102 103 104 105 106 107 108 |
# File 'lib/club_hopper/cli.rb', line 101 def list_saturday_event_cielo puts "This Saturday's Event at Cielo NYC!" @events = ClubHopper::Cielo.this_saturday_cielo @events.each.with_index(1) do |event, i| puts "#{i}. #{event.name} - #{event.date} " end end |
#list_saturday_event_output ⇒ Object
83 84 85 86 87 88 89 |
# File 'lib/club_hopper/cli.rb', line 83 def list_saturday_event_output puts "This Saturday's Event Output Brooklyn!" @events = ClubHopper::Output.this_saturday_output @events.each.with_index(1) do |event, i| puts "#{i}. #{event.name} - #{event.date} " end end |
#menu ⇒ Object
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 |
# File 'lib/club_hopper/cli.rb', line 112 def input = nil while input != "exit" puts "Wanna see what else is going on? Type 'start' to see the start again or 'exit' to exit." input = gets.strip.downcase if input.to_i > 0 the_event = @events[input.to_i-1] puts "#{the_event.name} - #{the_event.date}" elsif input == "start" puts "Ok...let's see what else is goin' on this weekend... " call elsif input == "exit" goodbye exit else puts "Not sure what you want, take a deep breath...." call end end end |
#what_day_cielo ⇒ Object
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/club_hopper/cli.rb', line 56 def what_day_cielo puts "What evening, Friday or Saturday?" puts "----------------------------------------" puts " 1. Friday Night\n 2. Saturday Night\n DOC\n input = nil\n input = gets.strip.downcase\n if input == \"1\"\n list_friday_event_cielo\n elsif input == \"2\"\n list_saturday_event_cielo\n end\nend\n" |
#what_day_output ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/club_hopper/cli.rb', line 39 def what_day_output puts "What evening, Friday or Saturday?" puts "----------------------------------------" puts " 1. Friday Night\n 2. Saturday Night\n DOC\n input = nil\n input = gets.strip.downcase\n if input == \"1\"\n list_friday_event_output\n elsif input == \"2\"\n list_saturday_event_output\n end\nend\n" |