Class: Neo::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/neo/configuration.rb

Overview

Stores the Neo configuration.

Constant Summary collapse

DEFAULT_SEEDS =
YAML.load_file(File.join(File.dirname(__FILE__), 'default_seeds.yml'))

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration


14
15
16
17
# File 'lib/neo/configuration.rb', line 14

def initialize
  self.seeds = Set.new
  self.network = 'TestNet'
end

Instance Attribute Details

#networkObject

Returns the value of attribute network


21
22
23
# File 'lib/neo/configuration.rb', line 21

def network
  @network
end

#seedsObject

Returns the value of attribute seeds


19
20
21
# File 'lib/neo/configuration.rb', line 19

def seeds
  @seeds
end