class Object

Public Instance Methods

goodbye() click to toggle source
# File lib/club_hopper/cli.rb, line 136
def goodbye
 puts "See you next time for the hottest techno/house music events in NYC!!"
 exit
end
list_friday_event_cielo() click to toggle source
# File lib/club_hopper/cli.rb, line 92
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() click to toggle source
# File lib/club_hopper/cli.rb, line 76
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() click to toggle source
# File lib/club_hopper/cli.rb, line 102
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() click to toggle source
# File lib/club_hopper/cli.rb, line 84
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() click to toggle source
what_day_cielo() click to toggle source
# File lib/club_hopper/cli.rb, line 57
     def what_day_cielo
        puts "What evening, Friday or Saturday?" 
        puts "----------------------------------------"
        puts <<-DOC 
        1. Friday Night
        2. Saturday Night
        DOC
        input = nil
        input = gets.strip.downcase
         if input == "1"
          list_friday_event_cielo
         elsif input == "2"
          list_saturday_event_cielo
       end
    end
what_day_output() click to toggle source
# File lib/club_hopper/cli.rb, line 40
   def what_day_output
     puts "What evening, Friday or Saturday?"
     puts "----------------------------------------"
     puts <<-DOC 
      1. Friday Night
      2. Saturday Night
     DOC
     input = nil
     input = gets.strip.downcase
       if input == "1"
       list_friday_event_output
       elsif input == "2"
       list_saturday_event_output
    end
   end