-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNOTES
89 lines (62 loc) · 2.73 KB
/
NOTES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
How to Build a CLI Gem
Plan your gem, imagine your interface(use fake ui/data)
Start with the project structure - google (figure out the patterns that other people are using to make their own gems)
Start with the entry point - the file run
force that to build the CLI interface
stub out the interface
start making things real
discover objects.
program
A command line interface for Top 100 Cryptocurrencies By Market Capitalization.
======================================================================
============================NEW=======================================
NEW> user types: ./bin/the-crypto-update
Todays crypto update:
Volume is the amount of the coin that has been traded with in a certain time frame...fy
-----------------
| Coin (Symbol) |
-----------------
Bitcoin (BTC)
Ripple (XRP)
Steller Lumens (XLM)
Bitcoin Coin ABC (BCHABC)
EOS (EOS)
Which coin do you want to learn more about?
1
Todays crypto update:
Volume is the amount of the coin that has been traded with in a certain time frame...fyi
----------------------------------------------------------------------
| Coin (Symbol) | Volume (1 day) | Volume (7 day) | Volume (30 day) |
----------------------------------------------------------------------
| Bitcoin (BTC) | $6,022,693,410 | $33,322,812,271 | $161,750,261,892 |
What is a coin?
A coin has a name
A coin has a Symbol
A coin has a volume_1d
A coin has a volume_7d
A coin has a volume_30d
===========================NEW========================================
======================================================================
==========================OLD=========================================
======================================================================
OLD> user types: ./bin/the-crypto-update
Show a list of Top 5 Cryptocurrencies
Token (Symbol) - Price - 24hr Change
Bitcoin (BTC) - $4040.63 - -4.01 %
Ripple (XRP) - $0.364702 - -4.01 %
Steller Lumens (XLM) - $0.159849 - 1.23 %
Bitcoin Coin ABC (BCHABC) - $173.65 - -1.31 %
EOS (EOS) - $2.88 - -1.73 %
Which coin do you want to learn more about?
1
What is a coin?
A coin has a name
A coin has a Symbol
A coin has a price
A coin has a 24hr Change
======================================================================
==========================OLD=========================================
Extra Information:
#!/usr/bin/env ruby - ruby interpreter - bin/the-crypto-update is not a ruby file we have to add this line to make sure
that your computer / os knows how to interpret this file through ruby
-> imported ruby interpreter