Sha256: 8745c1b3619c2c8ab606e35497e2c2311b6f78f91eb8d2347f05aed726300f99

Contents?: true

Size: 211 Bytes

Versions: 23

Compression:

Stored size: 211 Bytes

Contents

module TxCatcher

  class Address < Sequel::Model
    one_to_many :deposits

    def received_in_btc
      CryptoUnit.new(Config["currency"], self.received, from_unit: :primary).to_standart
    end

  end


end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
txcatcher-0.2.4 lib/txcatcher/models/address.rb
txcatcher-0.2.3 lib/txcatcher/models/address.rb
txcatcher-0.2.2 lib/txcatcher/models/address.rb
txcatcher-0.2.1 lib/txcatcher/models/address.rb
txcatcher-0.2.0 lib/txcatcher/models/address.rb
txcatcher-0.1.100 lib/txcatcher/models/address.rb
txcatcher-0.1.99 lib/txcatcher/models/address.rb
txcatcher-0.1.98 lib/txcatcher/models/address.rb
txcatcher-0.1.97 lib/txcatcher/models/address.rb
txcatcher-0.1.96 lib/txcatcher/models/address.rb
txcatcher-0.1.95 lib/txcatcher/models/address.rb
txcatcher-0.1.94 lib/txcatcher/models/address.rb
txcatcher-0.1.93 lib/txcatcher/models/address.rb
txcatcher-0.1.92 lib/txcatcher/models/address.rb
txcatcher-0.1.91 lib/txcatcher/models/address.rb
txcatcher-0.1.90 lib/txcatcher/models/address.rb
txcatcher-0.1.89 lib/txcatcher/models/address.rb
txcatcher-0.1.88 lib/txcatcher/models/address.rb
txcatcher-0.1.87 lib/txcatcher/models/address.rb
txcatcher-0.1.86 lib/txcatcher/models/address.rb