Class: TxCatcher::CryptoUnit
- Inherits:
-
Object
- Object
- TxCatcher::CryptoUnit
- Defined in:
- lib/txcatcher/utils/crypto_unit.rb
Class Method Summary collapse
Class Method Details
.new(type, amount, *args) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/txcatcher/utils/crypto_unit.rb', line 5 def self.new(type, amount, *args) if type.to_s == "ltc" || type.to_s == "litecoin" return LitoshiUnit.new(amount, *args) else return SatoshiUnit.new(amount, *args) end end |