Class: NcsNavigator::Configuration::TertiarySamplingUnit

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTertiarySamplingUnit

Returns a new instance of TertiarySamplingUnit.



64
65
66
67
# File 'lib/ncs_navigator/configuration/sampling_units.rb', line 64

def initialize(*)
  super
  secondary_sampling_unit.tertiary_sampling_units << self
end

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



63
64
65
# File 'lib/ncs_navigator/configuration/sampling_units.rb', line 63

def id
  @id
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



63
64
65
# File 'lib/ncs_navigator/configuration/sampling_units.rb', line 63

def name
  @name
end

#secondary_sampling_unitObject Also known as: ssu

Returns the value of attribute secondary_sampling_unit

Returns:

  • (Object)

    the current value of secondary_sampling_unit



63
64
65
# File 'lib/ncs_navigator/configuration/sampling_units.rb', line 63

def secondary_sampling_unit
  @secondary_sampling_unit
end