class AsanaCliGem::CLI

Attributes

poses[R]
scraper[R]

Public Instance Methods

call() click to toggle source
# File lib/asana_cli_gem/cli.rb, line 4
def call
  welcome
  @scraper = AsanaCliGem::Scraper.new
  scraper.pose_collector
  list_poses
  menu
  goodbye
end
goodbye() click to toggle source
# File lib/asana_cli_gem/cli.rb, line 58
def goodbye
  puts "Thank you for using the Asana CLI Gem!"
  puts "Namaste."
end
list_poses() click to toggle source
# File lib/asana_cli_gem/cli.rb, line 22
def list_poses
  puts "Strengthening Yoga Poses:"

  poses.each_with_index do |pose, index|
    puts "#{index+1}. #{pose.name}"
  end
end
menu() click to toggle source
welcome() click to toggle source
# File lib/asana_cli_gem/cli.rb, line 13
def welcome
  puts "Welcome to the Asana Finder CLI!"
  puts "Learn more about strengthening yoga poses, known in Sanskrit as asanas."
end