lib/cards/cli.rb
# Opens a website to apply for a credit card given an CreditCard id number
Opens a website to apply for a credit card given an CreditCard id number
Opens a website to apply for a credit card given an CreditCard id number
def apply(card_id)
    href = ""
    @cards.find {|card| href = card.apply_link if card.id == card_id}
    system("open #{href}")
  end
def apply ( card_id ) href = "" @cards . find { | card | href = card . apply_link if card . id == card_id } system ( "open #{href}" ) end
Opens a website to apply for a credit card given an CreditCard id number
Opens a website to apply for a credit card given an CreditCard id number
card_id
<not_specific>