class OverwatchHelper::CLI

Public Instance Methods

call() click to toggle source
# File lib/overwatch_helper/cli.rb, line 3
def call
  puts "Welcome to Overwatch Helper!"
  menu
  goodbye
end
goodbye() click to toggle source
# File lib/overwatch_helper/cli.rb, line 40
def goodbye
  puts "See you on the battelground!"
end
list_characters() click to toggle source
# File lib/overwatch_helper/cli.rb, line 9
def list_characters
  @characters = OverwatchHelper::Character.all
  @characters.each.with_index(1) do |i, index|
    puts "#{index}."+ "#{i[:name]}"
  end
end
list_maps() click to toggle source
# File lib/overwatch_helper/cli.rb, line 16
def list_maps
  @maps = OverwatchHelper::Map.all
  @maps.each.with_index(1) do |i, index|
    puts "#{index}."+"#{i[:name]}"
  end
end
menu() click to toggle source