Module: CryptoUnit
- Included in:
- Numeric
- Defined in:
- lib/crypto_unit.rb,
lib/crypto_unit/version.rb
Constant Summary collapse
- ENCRYPT_YAML_PATH =
File.dirname(File.(__FILE__)) + "/crypto_unit/denomination.yml"
- ENCRYPT_YAML_DATA =
YAML.load_file(ENCRYPT_YAML_PATH)
- VERSION =
"0.1.4.1"
Instance Method Summary collapse
- #centinero ⇒ Object
- #decinero ⇒ Object
-
#drop ⇒ Object
XRP.
- #ether ⇒ Object
- #finney ⇒ Object
- #gether ⇒ Object
- #gwei ⇒ Object
- #kether ⇒ Object
- #kwei ⇒ Object
-
#lites ⇒ Object
LTC.
- #litoshis ⇒ Object
- #mether ⇒ Object
- #micronero ⇒ Object
- #millinero ⇒ Object
- #monero ⇒ Object
- #mwei ⇒ Object
- #mxem ⇒ Object
- #nanonero ⇒ Object
- #photones ⇒ Object
-
#piconero ⇒ Object
XMR.
-
#satoshi ⇒ Object
BTC.
- #szabo ⇒ Object
-
#tether ⇒ Object
ETH.
- #wei ⇒ Object
-
#µxem ⇒ Object
XEM.
Instance Method Details
#centinero ⇒ Object
96 97 98 |
# File 'lib/crypto_unit.rb', line 96 def centinero self.to_d * ENCRYPT_YAML_DATA["XMR"]["#{__method__.downcase}"].to_d end |
#decinero ⇒ Object
100 101 102 |
# File 'lib/crypto_unit.rb', line 100 def decinero self.to_d * ENCRYPT_YAML_DATA["XMR"]["#{__method__.downcase}"].to_d end |
#drop ⇒ Object
XRP
62 63 64 |
# File 'lib/crypto_unit.rb', line 62 def drop self.to_d * ENCRYPT_YAML_DATA["XRP"]["#{__method__.downcase}"].to_d end |
#ether ⇒ Object
33 34 35 |
# File 'lib/crypto_unit.rb', line 33 def ether self.to_d * ENCRYPT_YAML_DATA["ETH"]["#{__method__.downcase}"].to_d end |
#finney ⇒ Object
37 38 39 |
# File 'lib/crypto_unit.rb', line 37 def finney self.to_d * ENCRYPT_YAML_DATA["ETH"]["#{__method__.downcase}"].to_d end |
#gether ⇒ Object
21 22 23 |
# File 'lib/crypto_unit.rb', line 21 def gether self.to_d * ENCRYPT_YAML_DATA["ETH"]["#{__method__.downcase}"].to_d end |
#gwei ⇒ Object
45 46 47 |
# File 'lib/crypto_unit.rb', line 45 def gwei self.to_d * ENCRYPT_YAML_DATA["ETH"]["#{__method__.downcase}"].to_d end |
#kether ⇒ Object
29 30 31 |
# File 'lib/crypto_unit.rb', line 29 def kether self.to_d * ENCRYPT_YAML_DATA["ETH"]["#{__method__.downcase}"].to_d end |
#kwei ⇒ Object
53 54 55 |
# File 'lib/crypto_unit.rb', line 53 def kwei self.to_d * ENCRYPT_YAML_DATA["ETH"]["#{__method__.downcase}"].to_d end |
#lites ⇒ Object
LTC
67 68 69 |
# File 'lib/crypto_unit.rb', line 67 def lites self.to_d * ENCRYPT_YAML_DATA["LTC"]["#{__method__.downcase}"].to_d end |
#litoshis ⇒ Object
75 76 77 |
# File 'lib/crypto_unit.rb', line 75 def litoshis self.to_d * ENCRYPT_YAML_DATA["LTC"]["#{__method__.downcase}"].to_d end |
#mether ⇒ Object
25 26 27 |
# File 'lib/crypto_unit.rb', line 25 def mether self.to_d * ENCRYPT_YAML_DATA["ETH"]["#{__method__.downcase}"].to_d end |
#micronero ⇒ Object
88 89 90 |
# File 'lib/crypto_unit.rb', line 88 def micronero self.to_d * ENCRYPT_YAML_DATA["XMR"]["#{__method__.downcase}"].to_d end |
#millinero ⇒ Object
92 93 94 |
# File 'lib/crypto_unit.rb', line 92 def millinero self.to_d * ENCRYPT_YAML_DATA["XMR"]["#{__method__.downcase}"].to_d end |
#monero ⇒ Object
104 105 106 |
# File 'lib/crypto_unit.rb', line 104 def monero self.to_d * ENCRYPT_YAML_DATA["XMR"]["#{__method__.downcase}"].to_d end |
#mwei ⇒ Object
49 50 51 |
# File 'lib/crypto_unit.rb', line 49 def mwei self.to_d * ENCRYPT_YAML_DATA["ETH"]["#{__method__.downcase}"].to_d end |
#mxem ⇒ Object
113 114 115 |
# File 'lib/crypto_unit.rb', line 113 def mxem self.to_d * ENCRYPT_YAML_DATA["XEM"]["#{__method__.downcase}"].to_d end |
#nanonero ⇒ Object
84 85 86 |
# File 'lib/crypto_unit.rb', line 84 def nanonero self.to_d * ENCRYPT_YAML_DATA["XMR"]["#{__method__.downcase}"].to_d end |
#photones ⇒ Object
71 72 73 |
# File 'lib/crypto_unit.rb', line 71 def photones self.to_d * ENCRYPT_YAML_DATA["LTC"]["#{__method__.downcase}"].to_d end |
#piconero ⇒ Object
XMR
80 81 82 |
# File 'lib/crypto_unit.rb', line 80 def piconero self.to_d * ENCRYPT_YAML_DATA["XMR"]["#{__method__.downcase}"].to_d end |
#satoshi ⇒ Object
BTC
12 13 14 |
# File 'lib/crypto_unit.rb', line 12 def satoshi self.to_d * ENCRYPT_YAML_DATA["BTC"]["#{__method__.downcase}"].to_d end |
#szabo ⇒ Object
41 42 43 |
# File 'lib/crypto_unit.rb', line 41 def szabo self.to_d * ENCRYPT_YAML_DATA["ETH"]["#{__method__.downcase}"].to_d end |
#tether ⇒ Object
ETH
17 18 19 |
# File 'lib/crypto_unit.rb', line 17 def tether self.to_d * ENCRYPT_YAML_DATA["ETH"]["#{__method__.downcase}"].to_d end |
#wei ⇒ Object
57 58 59 |
# File 'lib/crypto_unit.rb', line 57 def wei self.to_d * ENCRYPT_YAML_DATA["ETH"]["#{__method__.downcase}"].to_d end |
#µxem ⇒ Object
XEM
109 110 111 |
# File 'lib/crypto_unit.rb', line 109 def |