Class: CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/podcastme/cli.rb

Instance Method Summary collapse

Instance Method Details

#runObject



3
4
5
6
7
8
9
10
11
12
13
# File 'lib/podcastme/cli.rb', line 3

def run

    Scraper.scrape_podcast
puts "Welcome to PodcastMe: Discover your next podcast from the best of 2018".colorize(:white).on_blue

Podcast.all.each.with_index(1) do |podcast, i|
  puts "#{i}. Title: #{podcast.title}".chomp
  puts "Created by #{podcast.producer}".chomp
end
  select_podcast_by_index
end