Class: Vial::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/vial/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



8
9
10
11
12
13
14
# File 'lib/vial/config.rb', line 8

def initialize
  @source_paths = default_source_paths
  @output_path = nil
  @seed = 1
  @id_base = 0
  @id_range = 90_000
end

Instance Attribute Details

#id_baseObject

Returns the value of attribute id_base.



5
6
7
# File 'lib/vial/config.rb', line 5

def id_base
  @id_base
end

#id_rangeObject

Returns the value of attribute id_range.



5
6
7
# File 'lib/vial/config.rb', line 5

def id_range
  @id_range
end

#output_pathObject



16
17
18
# File 'lib/vial/config.rb', line 16

def output_path
  @output_path || default_output_path
end

#seedObject

Returns the value of attribute seed.



5
6
7
# File 'lib/vial/config.rb', line 5

def seed
  @seed
end

#source_pathsObject

Returns the value of attribute source_paths.



5
6
7
# File 'lib/vial/config.rb', line 5

def source_paths
  @source_paths
end