Class: NcsNavigator::Configuration::SamplingUnitArea

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeSamplingUnitArea

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

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



24
25
26
# File 'lib/ncs_navigator/configuration/sampling_units.rb', line 24

def name
  @name
end

#primary_sampling_unitObject Also known as: psu

Returns the value of attribute primary_sampling_unit

Returns:

  • (Object)

    the current value of 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_unitsArray<SecondarySamplingUnit> Also known as: ssus

Returns the SSUs in this area.

Returns:



32
33
34
# File 'lib/ncs_navigator/configuration/sampling_units.rb', line 32

def secondary_sampling_units
  @secondary_sampling_units ||= []
end