Sha256: d19445c51374b3ec31546ab4b14a1ad5c22b2cf2b5ac9adebcb5978c1d9a8b1e

Contents?: true

Size: 266 Bytes

Versions: 28

Compression:

Stored size: 266 Bytes

Contents

module TxCatcher

  class CryptoUnit
  
    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

  end

end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
txcatcher-0.2.14 lib/txcatcher/utils/crypto_unit.rb
txcatcher-0.2.12 lib/txcatcher/utils/crypto_unit.rb
txcatcher-0.2.11 lib/txcatcher/utils/crypto_unit.rb
txcatcher-0.2.10 lib/txcatcher/utils/crypto_unit.rb
txcatcher-0.2.9 lib/txcatcher/utils/crypto_unit.rb
txcatcher-0.2.8 lib/txcatcher/utils/crypto_unit.rb
txcatcher-0.2.6 lib/txcatcher/utils/crypto_unit.rb
txcatcher-0.2.4 lib/txcatcher/utils/crypto_unit.rb
txcatcher-0.2.3 lib/txcatcher/utils/crypto_unit.rb
txcatcher-0.2.2 lib/txcatcher/utils/crypto_unit.rb
txcatcher-0.2.1 lib/txcatcher/utils/crypto_unit.rb
txcatcher-0.2.0 lib/txcatcher/utils/crypto_unit.rb
txcatcher-0.1.100 lib/txcatcher/utils/crypto_unit.rb
txcatcher-0.1.99 lib/txcatcher/utils/crypto_unit.rb
txcatcher-0.1.98 lib/txcatcher/utils/crypto_unit.rb
txcatcher-0.1.97 lib/txcatcher/utils/crypto_unit.rb
txcatcher-0.1.96 lib/txcatcher/utils/crypto_unit.rb
txcatcher-0.1.95 lib/txcatcher/utils/crypto_unit.rb
txcatcher-0.1.94 lib/txcatcher/utils/crypto_unit.rb
txcatcher-0.1.93 lib/txcatcher/utils/crypto_unit.rb