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.expand_path(__FILE__)) + "/crypto_unit/denomination.yml"
ENCRYPT_YAML_DATA =
YAML.load_file(ENCRYPT_YAML_PATH)
VERSION =
"0.1.4.1"

Instance Method Summary collapse

Instance Method Details

#centineroObject



96
97
98
# File 'lib/crypto_unit.rb', line 96

def centinero
  self.to_d * ENCRYPT_YAML_DATA["XMR"]["#{__method__.downcase}"].to_d
end

#decineroObject



100
101
102
# File 'lib/crypto_unit.rb', line 100

def decinero
  self.to_d * ENCRYPT_YAML_DATA["XMR"]["#{__method__.downcase}"].to_d
end

#dropObject

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

#etherObject



33
34
35
# File 'lib/crypto_unit.rb', line 33

def ether
  self.to_d * ENCRYPT_YAML_DATA["ETH"]["#{__method__.downcase}"].to_d
end

#finneyObject



37
38
39
# File 'lib/crypto_unit.rb', line 37

def finney
  self.to_d * ENCRYPT_YAML_DATA["ETH"]["#{__method__.downcase}"].to_d
end

#getherObject



21
22
23
# File 'lib/crypto_unit.rb', line 21

def gether
  self.to_d * ENCRYPT_YAML_DATA["ETH"]["#{__method__.downcase}"].to_d
end

#gweiObject



45
46
47
# File 'lib/crypto_unit.rb', line 45

def gwei
  self.to_d * ENCRYPT_YAML_DATA["ETH"]["#{__method__.downcase}"].to_d
end

#ketherObject



29
30
31
# File 'lib/crypto_unit.rb', line 29

def kether
  self.to_d * ENCRYPT_YAML_DATA["ETH"]["#{__method__.downcase}"].to_d
end

#kweiObject



53
54
55
# File 'lib/crypto_unit.rb', line 53

def kwei
  self.to_d * ENCRYPT_YAML_DATA["ETH"]["#{__method__.downcase}"].to_d
end

#litesObject

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

#litoshisObject



75
76
77
# File 'lib/crypto_unit.rb', line 75

def litoshis
  self.to_d * ENCRYPT_YAML_DATA["LTC"]["#{__method__.downcase}"].to_d
end

#metherObject



25
26
27
# File 'lib/crypto_unit.rb', line 25

def mether
  self.to_d * ENCRYPT_YAML_DATA["ETH"]["#{__method__.downcase}"].to_d
end

#microneroObject



88
89
90
# File 'lib/crypto_unit.rb', line 88

def micronero
  self.to_d * ENCRYPT_YAML_DATA["XMR"]["#{__method__.downcase}"].to_d
end

#millineroObject



92
93
94
# File 'lib/crypto_unit.rb', line 92

def millinero
  self.to_d * ENCRYPT_YAML_DATA["XMR"]["#{__method__.downcase}"].to_d
end

#moneroObject



104
105
106
# File 'lib/crypto_unit.rb', line 104

def monero
  self.to_d * ENCRYPT_YAML_DATA["XMR"]["#{__method__.downcase}"].to_d
end

#mweiObject



49
50
51
# File 'lib/crypto_unit.rb', line 49

def mwei
  self.to_d * ENCRYPT_YAML_DATA["ETH"]["#{__method__.downcase}"].to_d
end

#mxemObject



113
114
115
# File 'lib/crypto_unit.rb', line 113

def mxem
  self.to_d * ENCRYPT_YAML_DATA["XEM"]["#{__method__.downcase}"].to_d
end

#nanoneroObject



84
85
86
# File 'lib/crypto_unit.rb', line 84

def nanonero
  self.to_d * ENCRYPT_YAML_DATA["XMR"]["#{__method__.downcase}"].to_d
end

#photonesObject



71
72
73
# File 'lib/crypto_unit.rb', line 71

def photones
  self.to_d * ENCRYPT_YAML_DATA["LTC"]["#{__method__.downcase}"].to_d
end

#piconeroObject

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

#satoshiObject

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

#szaboObject



41
42
43
# File 'lib/crypto_unit.rb', line 41

def szabo
  self.to_d * ENCRYPT_YAML_DATA["ETH"]["#{__method__.downcase}"].to_d
end

#tetherObject

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

#weiObject



57
58
59
# File 'lib/crypto_unit.rb', line 57

def wei
  self.to_d * ENCRYPT_YAML_DATA["ETH"]["#{__method__.downcase}"].to_d
end

#µxemObject

XEM



109
110
111
# File 'lib/crypto_unit.rb', line 109

def