Top Level Namespace
Defined Under Namespace
Modules: CryptoMarket
Instance Method Summary collapse
-
#ascii_welcome ⇒ Object
Ascii welcome message.
-
#coin_search ⇒ Object
Search for specific name for a coin and return information about it.
Instance Method Details
#ascii_welcome ⇒ Object
Ascii welcome message
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 |
# File 'lib/crypto_market/cli.rb', line 107 def ascii_welcome <<-'HEREDOC' /$$$$$$ /$$ /$$ /$$ /$$ /$$ /$$__ $$ | $$ | $$$ /$$$ | $$ | $$ | $$ \__/ /$$$$$$ /$$ /$$ /$$$$$$ /$$$$$$ /$$$$$$ | $$$$ /$$$$ /$$$$$$ /$$$$$$ | $$ /$$ /$$$$$$ /$$$$$$ | $$ /$$__ $$| $$ | $$ /$$__ $$|_ $$_/ /$$__ $$ | $$ $$/$$ $$ |____ $$ /$$__ $$| $$ /$$/ /$$__ $$|_ $$_/ | $$ | $$ \__/| $$ | $$| $$ \ $$ | $$ | $$ \ $$ | $$ $$$| $$ /$$$$$$$| $$ \__/| $$$$$$/ | $$$$$$$$ | $$ | $$ $$| $$ | $$ | $$| $$ | $$ | $$ /$$| $$ | $$ | $$\ $ | $$ /$$__ $$| $$ | $$_ $$ | $$_____/ | $$ /$$ | $$$$$$/| $$ | $$$$$$$| $$$$$$$/ | $$$$/| $$$$$$/ | $$ \/ | $$| $$$$$$$| $$ | $$ \ $$| $$$$$$$ | $$$$/ \______/ |__/ \____ $$| $$____/ \___/ \______/ |__/ |__/ \_______/|__/ |__/ \__/ \_______/ \___/ /$$ | $$| $$ | $$$$$$/| $$ \______/ |__/ HEREDOC end |
#coin_search ⇒ Object
Search for specific name for a coin and return information about it
93 94 95 96 97 98 99 100 101 102 103 104 |
# File 'lib/crypto_market/cli.rb', line 93 def coin_search currencies.print_coin_names enter_input_msg input = gets.strip.to_i if currencies.find_by_number(input).nil? enter_valid_input_msg coin_search else currencies.find_by_number(input).attributes end end |