Class: SmoEaHydrology::InventoryEntry

Inherits:
Struct
  • Object
show all
Defined in:
lib/smo_ea_hydrology/inventory_entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#coverage_fromObject

Returns the value of attribute coverage_from

Returns:

  • (Object)

    the current value of coverage_from



4
5
6
# File 'lib/smo_ea_hydrology/inventory_entry.rb', line 4

def coverage_from
  @coverage_from
end

#coverage_toObject

Returns the value of attribute coverage_to

Returns:

  • (Object)

    the current value of coverage_to



4
5
6
# File 'lib/smo_ea_hydrology/inventory_entry.rb', line 4

def coverage_to
  @coverage_to
end

#date_openedObject

Returns the value of attribute date_opened

Returns:

  • (Object)

    the current value of date_opened



4
5
6
# File 'lib/smo_ea_hydrology/inventory_entry.rb', line 4

def date_opened
  @date_opened
end

#eastingObject

Returns the value of attribute easting

Returns:

  • (Object)

    the current value of easting



4
5
6
# File 'lib/smo_ea_hydrology/inventory_entry.rb', line 4

def easting
  @easting
end

#latObject

Returns the value of attribute lat

Returns:

  • (Object)

    the current value of lat



4
5
6
# File 'lib/smo_ea_hydrology/inventory_entry.rb', line 4

def lat
  @lat
end

#longObject

Returns the value of attribute long

Returns:

  • (Object)

    the current value of long



4
5
6
# File 'lib/smo_ea_hydrology/inventory_entry.rb', line 4

def long
  @long
end

#measure_idObject

Returns the value of attribute measure_id

Returns:

  • (Object)

    the current value of measure_id



4
5
6
# File 'lib/smo_ea_hydrology/inventory_entry.rb', line 4

def measure_id
  @measure_id
end

#northingObject

Returns the value of attribute northing

Returns:

  • (Object)

    the current value of northing



4
5
6
# File 'lib/smo_ea_hydrology/inventory_entry.rb', line 4

def northing
  @northing
end

#period_nameObject

Returns the value of attribute period_name

Returns:

  • (Object)

    the current value of period_name



4
5
6
# File 'lib/smo_ea_hydrology/inventory_entry.rb', line 4

def period_name
  @period_name
end

#station_labelObject

Returns the value of attribute station_label

Returns:

  • (Object)

    the current value of station_label



4
5
6
# File 'lib/smo_ea_hydrology/inventory_entry.rb', line 4

def station_label
  @station_label
end

#station_referenceObject

Returns the value of attribute station_reference

Returns:

  • (Object)

    the current value of station_reference



4
5
6
# File 'lib/smo_ea_hydrology/inventory_entry.rb', line 4

def station_reference
  @station_reference
end

#unit_nameObject

Returns the value of attribute unit_name

Returns:

  • (Object)

    the current value of unit_name



4
5
6
# File 'lib/smo_ea_hydrology/inventory_entry.rb', line 4

def unit_name
  @unit_name
end

#value_typeObject

Returns the value of attribute value_type

Returns:

  • (Object)

    the current value of value_type



4
5
6
# File 'lib/smo_ea_hydrology/inventory_entry.rb', line 4

def value_type
  @value_type
end

Instance Method Details

#coverage_from_sObject



20
21
22
# File 'lib/smo_ea_hydrology/inventory_entry.rb', line 20

def coverage_from_s
  coverage_from&.strftime("%Y-%m-%d %H:%M") || "unknown"
end

#coverage_to_sObject



24
25
26
# File 'lib/smo_ea_hydrology/inventory_entry.rb', line 24

def coverage_to_s
  coverage_to&.strftime("%Y-%m-%d %H:%M") || "unknown"
end