class Object
Public Instance Methods
ascii_welcome()
click to toggle source
Ascii welcome message
# File lib/crypto_market/cli.rb, line 107 def ascii_welcome <<-'HEREDOC' /$$$$$$ /$$ /$$ /$$ /$$ /$$ /$$__ $$ | $$ | $$$ /$$$ | $$ | $$ | $$ \__/ /$$$$$$ /$$ /$$ /$$$$$$ /$$$$$$ /$$$$$$ | $$$$ /$$$$ /$$$$$$ /$$$$$$ | $$ /$$ /$$$$$$ /$$$$$$ | $$ /$$__ $$| $$ | $$ /$$__ $$|_ $$_/ /$$__ $$ | $$ $$/$$ $$ |____ $$ /$$__ $$| $$ /$$/ /$$__ $$|_ $$_/ | $$ | $$ \__/| $$ | $$| $$ \ $$ | $$ | $$ \ $$ | $$ $$$| $$ /$$$$$$$| $$ \__/| $$$$$$/ | $$$$$$$$ | $$ | $$ $$| $$ | $$ | $$| $$ | $$ | $$ /$$| $$ | $$ | $$\ $ | $$ /$$__ $$| $$ | $$_ $$ | $$_____/ | $$ /$$ | $$$$$$/| $$ | $$$$$$$| $$$$$$$/ | $$$$/| $$$$$$/ | $$ \/ | $$| $$$$$$$| $$ | $$ \ $$| $$$$$$$ | $$$$/ \______/ |__/ \____ $$| $$____/ \___/ \______/ |__/ |__/ \_______/|__/ |__/ \__/ \_______/ \___/ /$$ | $$| $$ | $$$$$$/| $$ \______/ |__/ HEREDOC end
coin_search()
click to toggle source
Search for specific name for a coin and return information about it
# 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 navigation end end