lib/cards/cli.rb
# Prints a document with information about a particular card
Prints a document with information about a particular card
Prints a document with information about a particular card
def info(card_id)
    @cards_site.get_info(card_id)
    input = ""
    until ["y", "n"].include? input do
      puts "Would you like to apply for this card? #{"(y/n)".bold}"
      input = gets.strip.downcase
      apply(card_id) if input == "y"
    end
  end
def info ( card_id ) @cards_site . get_info ( card_id ) input = "" until [ "y" , "n" ] . include? input do puts "Would you like to apply for this card? #{"(y/n)".bold}" input = gets . strip . downcase apply ( card_id ) if input == "y" end end
Prints a document with information about a particular card
Prints a document with information about a particular card
card_id
<not_specific>