class OrlandoTechMeetups::CLI
Public Instance Methods
call()
click to toggle source
# File lib/orlando_tech_meetups/cli.rb, line 2 def call list_meetups menu end
list_meetups()
click to toggle source
# File lib/orlando_tech_meetups/cli.rb, line 27 def list_meetups puts "Hello and Welcome to the Orlando Tech Scene!" puts "Loading meetups" meetup puts "Enter the number of the meetup group you're interested in going to:" end
meetup()
click to toggle source
# File lib/orlando_tech_meetups/cli.rb, line 34 def meetup @meetups = OrlandoTechMeetups::Meetups.all @meetups.each.with_index(1) do |meetup, i| puts "#{i}. #{meetup.name}" end end