Class: Slcsp::Config
Overview
Contains paths to data files: zips, plans, slcsp
Class Attribute Summary collapse
-
.output_medium ⇒ Object
Returns the value of attribute output_medium.
-
.plans_file ⇒ Object
Returns the value of attribute plans_file.
-
.slcsp_file ⇒ Object
Returns the value of attribute slcsp_file.
-
.target_level ⇒ Object
Returns the value of attribute target_level.
-
.zips_file ⇒ Object
Returns the value of attribute zips_file.
Class Method Summary collapse
- .area_index ⇒ Object
- .build_indexes ⇒ Object
- .configure {|_self| ... } ⇒ Object
- .plan_index ⇒ Object
Class Attribute Details
.output_medium ⇒ Object
Returns the value of attribute output_medium.
11 12 13 |
# File 'lib/slcsp/config.rb', line 11 def output_medium @output_medium end |
.plans_file ⇒ Object
Returns the value of attribute plans_file.
11 12 13 |
# File 'lib/slcsp/config.rb', line 11 def plans_file @plans_file end |
.slcsp_file ⇒ Object
Returns the value of attribute slcsp_file.
11 12 13 |
# File 'lib/slcsp/config.rb', line 11 def slcsp_file @slcsp_file end |
.target_level ⇒ Object
Returns the value of attribute target_level.
11 12 13 |
# File 'lib/slcsp/config.rb', line 11 def target_level @target_level end |
.zips_file ⇒ Object
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_index ⇒ Object
22 23 24 |
# File 'lib/slcsp/config.rb', line 22 def area_index @area_index end |
.build_indexes ⇒ Object
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
13 14 15 |
# File 'lib/slcsp/config.rb', line 13 def configure yield self end |
.plan_index ⇒ Object
26 27 28 |
# File 'lib/slcsp/config.rb', line 26 def plan_index @area_index end |