Class: NcsNavigator::Configuration::SamplingUnitArea
- Inherits:
-
Struct
- Object
- Struct
- NcsNavigator::Configuration::SamplingUnitArea
- Defined in:
- lib/ncs_navigator/configuration/sampling_units.rb
Overview
NCS Navigator defines the concept of an "area" encompassing one or more SSUs. See sample_configuration for more information.
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#primary_sampling_unit ⇒ Object
(also: #psu)
Returns the value of attribute primary_sampling_unit.
Instance Method Summary collapse
-
#initialize ⇒ SamplingUnitArea
constructor
A new instance of SamplingUnitArea.
-
#secondary_sampling_units ⇒ Array<SecondarySamplingUnit>
(also: #ssus)
The SSUs in this area.
Constructor Details
#initialize ⇒ SamplingUnitArea
Returns a new instance of SamplingUnitArea.
25 26 27 28 |
# File 'lib/ncs_navigator/configuration/sampling_units.rb', line 25 def initialize(*) super primary_sampling_unit.sampling_unit_areas << self end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
24 25 26 |
# File 'lib/ncs_navigator/configuration/sampling_units.rb', line 24 def name @name end |
#primary_sampling_unit ⇒ Object Also known as: psu
Returns the value of attribute primary_sampling_unit
24 25 26 |
# File 'lib/ncs_navigator/configuration/sampling_units.rb', line 24 def primary_sampling_unit @primary_sampling_unit end |
Instance Method Details
#secondary_sampling_units ⇒ Array<SecondarySamplingUnit> Also known as: ssus
Returns the SSUs in this area.
32 33 34 |
# File 'lib/ncs_navigator/configuration/sampling_units.rb', line 32 def secondary_sampling_units @secondary_sampling_units ||= [] end |