Class: Slcsp::Config

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/slcsp/config.rb

Overview

Contains paths to data files: zips, plans, slcsp

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.output_mediumObject

Returns the value of attribute output_medium.



11
12
13
# File 'lib/slcsp/config.rb', line 11

def output_medium
  @output_medium
end

.plans_fileObject

Returns the value of attribute plans_file.



11
12
13
# File 'lib/slcsp/config.rb', line 11

def plans_file
  @plans_file
end

.slcsp_fileObject

Returns the value of attribute slcsp_file.



11
12
13
# File 'lib/slcsp/config.rb', line 11

def slcsp_file
  @slcsp_file
end

.target_levelObject

Returns the value of attribute target_level.



11
12
13
# File 'lib/slcsp/config.rb', line 11

def target_level
  @target_level
end

.zips_fileObject

Returns the value of attribute zips_file.



11
12
13
# File 'lib/slcsp/config.rb', line 11

def zips_file
  @zips_file
end

Class Method Details

.area_indexObject



22
23
24
# File 'lib/slcsp/config.rb', line 22

def area_index
  @area_index
end

.build_indexesObject



17
18
19
20
# File 'lib/slcsp/config.rb', line 17

def build_indexes
  @area_index = ZipParser.instance(zips_file)
  @area_index = PlanParser.instance(plans_file)
end

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Slcsp::Config)

    the object that the method was called on



13
14
15
# File 'lib/slcsp/config.rb', line 13

def configure
  yield self
end

.plan_indexObject



26
27
28
# File 'lib/slcsp/config.rb', line 26

def plan_index
  @area_index
end