class CatsToAdopt::CLI

Constants

BASE_PATH

Public Instance Methods

call() click to toggle source
# File lib/cats_to_adopt/CLI.rb, line 5
def call
  intro_message
  make_cats
  list_cats
  menu
  goodbye
end
goodbye() click to toggle source
# File lib/cats_to_adopt/CLI.rb, line 52
def goodbye
  puts "\nGoodbye!"
end
intro_message() click to toggle source
# File lib/cats_to_adopt/CLI.rb, line 13
def intro_message
  puts "\n-----------------------------"
  puts "| Welcome to Cats to Adopt! |"
  puts "-----------------------------\n\n"
  puts "Retrieving cat info..."
end
list_cats() click to toggle source
# File lib/cats_to_adopt/CLI.rb, line 24
def list_cats
  CatsToAdopt::Cat.print_cats
end
make_cats() click to toggle source
# File lib/cats_to_adopt/CLI.rb, line 20
def make_cats
  CatsToAdopt::Scraper.scrape_main_page(BASE_PATH + 'pets?field_animal_species_tid_selective=958')
end
menu() click to toggle source