Class: NcsNavigator::Configuration::PrimarySamplingUnit

Inherits:
Struct
  • Object
show all
Defined in:
lib/ncs_navigator/configuration/sampling_units.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



4
5
6
# File 'lib/ncs_navigator/configuration/sampling_units.rb', line 4

def id
  @id
end

Instance Method Details

#sampling_unit_areasArray<SamplingUnitArea> Also known as: areas

Returns the areas in this PSU.

Returns:



7
8
9
# File 'lib/ncs_navigator/configuration/sampling_units.rb', line 7

def sampling_unit_areas
  @sampling_unit_areas ||= []
end

#secondary_sampling_unitsArray<SecondarySamplingUnit> Also known as: ssus

Returns the SSUs in this PSU.

Returns:



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