class FearlessFlyer::CLI
Public Instance Methods
call()
click to toggle source
# File lib/fearless_flyer/cli.rb, line 3 def call list_products menu goodbye end
goodbye()
click to toggle source
# File lib/fearless_flyer/cli.rb, line 39 def goodbye puts "At least go for Two Buck Chuck!" end
list_products()
click to toggle source
# File lib/fearless_flyer/cli.rb, line 9 def list_products puts "Fearlessly Featured Products:" @products = FearlessFlyer::Scraper.scrape_products_page @products.each.with_index(1) do |product, i| puts "#{i}. #{product}" end end