Sha256: d40db25995d00bbbfff4e0170d6a0a673f11eb48c39b08aa614166527a87ac81

Contents?: true

Size: 393 Bytes

Versions: 7

Compression:

Stored size: 393 Bytes

Contents

module MastercoinWallet
  module Util
    def get_date(date)
      time = Time.strptime(date, "%Y-%m-%dT%H:%M:%S.000Z").strftime("%d-%m-%Y %H:%M:%S")
      #Qt::Date.new(time.strftime("%Y").to_i, time.strftime("%m").to_i, time.strftime("%d").to_i)
    end

    def coin_name(currency_id)
      if currency_id.to_s == "1"
        "MSC"
      else
        "Test MSC"
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mastercoin-wallet-0.0.13 lib/mastercoin-wallet/util.rb
mastercoin-wallet-0.0.12 lib/mastercoin-wallet/util.rb
mastercoin-wallet-0.0.11 lib/mastercoin-wallet/util.rb
mastercoin-wallet-0.0.10 lib/mastercoin-wallet/util.rb
mastercoin-wallet-0.0.9 lib/mastercoin-wallet/util.rb
mastercoin-wallet-0.0.8 lib/mastercoin-wallet/util.rb
mastercoin-wallet-0.0.7 lib/mastercoin-wallet/util.rb