Module: MastercoinWallet

Defined in:
lib/mastercoin-wallet.rb,
lib/mastercoin-wallet/util.rb,
lib/mastercoin-wallet/config.rb,
lib/mastercoin-wallet/builder.rb,
lib/mastercoin-wallet/models/address.rb,
lib/mastercoin-wallet/network/wallet.rb,
lib/mastercoin-wallet/gui/main_window.rb,
lib/mastercoin-wallet/models/transaction.rb,
lib/mastercoin-wallet/gui/first_run_window.rb,
lib/mastercoin-wallet/models/selling_offer.rb,
lib/mastercoin-wallet/network/selling_offer.rb,
lib/mastercoin-wallet/gui/simple_send_window.rb,
lib/mastercoin-wallet/gui/bitcoin_offer_window.rb,
lib/mastercoin-wallet/gui/selling_offer_window.rb,
lib/mastercoin-wallet/gui/purchase_offer_window.rb

Defined Under Namespace

Modules: Builder, Models, Network, Util Classes: Address, BitcoinOfferWindow, Config, FirstRunWindow, MainWindow, PurchaseOfferWindow, SellingOfferWindow, SimpleSendWindow, Transaction

Constant Summary collapse

CONFIG_PATH =
"#{Dir.home}/.mastercoin-wallet/"
FILE_PATH =
CONFIG_PATH + "config.json"

Class Method Summary collapse

Class Method Details

.configObject



50
51
52
# File 'lib/mastercoin-wallet.rb', line 50

def self.config
  @@config ||= MastercoinWallet::Config.new
end

.init_logger(level = Logger::DEBUG) ⇒ Object



62
63
64
65
66
# File 'lib/mastercoin-wallet.rb', line 62

def self.init_logger(level = Logger::DEBUG)
  @@log ||= Logger.new(CONFIG_PATH + "/debug.log")
  @@log.level = level
  @@log
end

.logObject



68
69
70
# File 'lib/mastercoin-wallet.rb', line 68

def self.log
  @@log ||= MastercoinWallet.init_logger
end

.selling_offersObject



54
55
56
# File 'lib/mastercoin-wallet.rb', line 54

def self.selling_offers
  @@selling_offers ||= MastercoinWallet::Network::SellingOffer.new
end

.walletObject



58
59
60
# File 'lib/mastercoin-wallet.rb', line 58

def self.wallet
  @@wallet ||= MastercoinWallet::Network::Wallet.new
end