Class: SmoEaHydrology::Station

Inherits:
Struct
  • Object
show all
Defined in:
lib/smo_ea_hydrology/station.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/station.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/station.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/station.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/station.rb', line 4

def easting
  @easting
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



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

def id
  @id
end

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



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

def label
  @label
end

#latObject

Returns the value of attribute lat

Returns:

  • (Object)

    the current value of lat



4
5
6
# File 'lib/smo_ea_hydrology/station.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/station.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/station.rb', line 4

def measure_id
  @measure_id
end

#measure_labelObject

Returns the value of attribute measure_label

Returns:

  • (Object)

    the current value of measure_label



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

def measure_label
  @measure_label
end

#northingObject

Returns the value of attribute northing

Returns:

  • (Object)

    the current value of northing



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

def northing
  @northing
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/station.rb', line 4

def station_reference
  @station_reference
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



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

def status
  @status
end

#wiski_idObject

Returns the value of attribute wiski_id

Returns:

  • (Object)

    the current value of wiski_id



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

def wiski_id
  @wiski_id
end

Instance Method Details

#coverage_from_sObject



21
22
23
# File 'lib/smo_ea_hydrology/station.rb', line 21

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

#coverage_to_sObject



25
26
27
# File 'lib/smo_ea_hydrology/station.rb', line 25

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