Class: ArkEcosystem::Crypto::Configuration::Network

Inherits:
Object
  • Object
show all
Defined in:
lib/arkecosystem/crypto/configuration/network.rb

Overview

The holder of network configuration.

Class Method Summary collapse

Class Method Details

.getObject



8
9
10
# File 'lib/arkecosystem/crypto/configuration/network.rb', line 8

def self.get
  @network || ArkEcosystem::Crypto::Networks::Mainnet
end

.set(network) ⇒ Object



12
13
14
# File 'lib/arkecosystem/crypto/configuration/network.rb', line 12

def self.set(network)
  @network = network
end