class FiresideFinder::CLI

Attributes

current_gatherings[RW]
geoaddress[RW]
specific_event[RW]
user_input[RW]

Public Class Methods

call() click to toggle source
# File lib/fireside-finder/cli.rb, line 10
def self.call
  puts "--------------------------------------------------------------------------------"
  puts "Welcome to Hearthstone Fireside Gathering Finder Gem!"
  puts "--------------------------------------------------------------------------------"
  puts "Use 'new' to get back to this menu, 'exit' will close the program."
  puts "Please enter your address or zip-code to find local Fireside Gatherings:"
  user_input = gets.strip
  while user_input != "exit"
    FiresideFinder::CLI.print_all(user_input)
    FiresideFinder::CLI.menu
  end
  puts "See you at the Tavern, hero!"
end
menu() click to toggle source
print_all(user_input) click to toggle source
print_specific(specific_event) click to toggle source