class BestMoviesNearMe::CLI

Public Instance Methods

call() click to toggle source
# File lib/cli.rb, line 3
def call 
  BestMoviesNearMe::Scraper.new.create_movie
  puts "Welcome to GoodMovieFinder, where we cut out the bullshit and fake reviews to find *actual* quality movies *actually* playing near you."
  start 
end
print_movie(movie) click to toggle source
print_movies(caliber) click to toggle source
start() click to toggle source
# File lib/cli.rb, line 9
def start 
  puts ""
  puts "What caliber of movie would you like to see? Excellent, Good, So-So, or Shitty?"
  input = gets.strip.capitalize 
  
  print_movies(input)
  
  puts ""
  puts "Which movie would you like more info on?"
  input = gets.strip

movie = BestMoviesNearMe::Movie.find(input.to_i)

print_movie(movie)

puts ""
puts "Want to see another movie? Enter Y or N"

input = gets.strip.downcase
if input == "y"
  start 
  elsif input == "n"
  puts ""
  puts "See Ya"
  exit
else 
  puts ""
  puts "Invalid answer."
  start 
end 
end