class Bitprice::CLI
CLI
Controller
Attributes
input[RW]
Public Instance Methods
call()
click to toggle source
# File lib/bitprice/cli.rb, line 8 def call details menu end
details()
click to toggle source
# File lib/bitprice/cli.rb, line 13 def details puts " " puts " " puts "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$".colorize(:green) puts " " puts " -------| Welcome to Bitprice! Version 0.1.0 |-------".colorize(:yellow) puts "Your #1 source for real time Cryptocurrency information".colorize(:yellow) puts " Top 100 Coins ".colorize(:yellow) puts " " puts "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$".colorize(:green) puts " " @listing = Bitprice::Listing.now @listing.each.with_index(1) do |crypto, i| puts "#{i}." + "#{crypto.name}".colorize(:yellow) + " -" + "#{crypto.percent}".colorize(:red) + " | " + "$#{crypto.high}".colorize(:green) + " / " + "$#{crypto.low}".colorize(:green) end #@listing.clear end