module TezosClient::CurrencyUtils
Constants
- TEZOS_SATOSHI
Public Instance Methods
from_satoshi()
click to toggle source
# File lib/tezos_client/currency_utils.rb, line 11 def from_satoshi self.to_d / TEZOS_SATOSHI end
to_satoshi()
click to toggle source
# File lib/tezos_client/currency_utils.rb, line 15 def to_satoshi (self * TEZOS_SATOSHI).to_i end