Class: NcsNavigator::Configuration::PrimarySamplingUnit
- Inherits:
-
Struct
- Object
- Struct
- NcsNavigator::Configuration::PrimarySamplingUnit
- Defined in:
- lib/ncs_navigator/configuration/sampling_units.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
-
#sampling_unit_areas ⇒ Array<SamplingUnitArea>
(also: #areas)
The areas in this PSU.
-
#secondary_sampling_units ⇒ Array<SecondarySamplingUnit>
(also: #ssus)
The SSUs in this PSU.
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
4 5 6 |
# File 'lib/ncs_navigator/configuration/sampling_units.rb', line 4 def id @id end |
Instance Method Details
#sampling_unit_areas ⇒ Array<SamplingUnitArea> Also known as: areas
Returns the areas in this PSU.
7 8 9 |
# File 'lib/ncs_navigator/configuration/sampling_units.rb', line 7 def sampling_unit_areas @sampling_unit_areas ||= [] end |
#secondary_sampling_units ⇒ Array<SecondarySamplingUnit> Also known as: ssus
Returns the SSUs in this PSU.
13 14 15 |
# File 'lib/ncs_navigator/configuration/sampling_units.rb', line 13 def secondary_sampling_units sampling_unit_areas.collect(&:secondary_sampling_units).flatten end |