class Applist::CLI

Attributes

avg_rating[RW]
category[RW]
desc[RW]
name[RW]

Public Instance Methods

call() click to toggle source
# File lib/applist/cli.rb, line 4
def call
  list_apps
  menu
  goodbye
end
goodbye() click to toggle source
# File lib/applist/cli.rb, line 36
def goodbye
  puts "Lata sucka!"
end
list_apps() click to toggle source
# File lib/applist/cli.rb, line 10
def list_apps
  @apps = Applist::Apps.popular
  @apps.each.with_index(1) do | app, i |
    puts "#{i}. #{app[:name][0]} in #{app[:category][0]}."
  end
end
menu() click to toggle source