Class: SmoEaHydrology::Station
- Inherits:
-
Struct
- Object
- Struct
- SmoEaHydrology::Station
- Defined in:
- lib/smo_ea_hydrology/station.rb
Instance Attribute Summary collapse
-
#coverage_from ⇒ Object
Returns the value of attribute coverage_from.
-
#coverage_to ⇒ Object
Returns the value of attribute coverage_to.
-
#date_opened ⇒ Object
Returns the value of attribute date_opened.
-
#easting ⇒ Object
Returns the value of attribute easting.
-
#id ⇒ Object
Returns the value of attribute id.
-
#label ⇒ Object
Returns the value of attribute label.
-
#lat ⇒ Object
Returns the value of attribute lat.
-
#long ⇒ Object
Returns the value of attribute long.
-
#measure_id ⇒ Object
Returns the value of attribute measure_id.
-
#measure_label ⇒ Object
Returns the value of attribute measure_label.
-
#northing ⇒ Object
Returns the value of attribute northing.
-
#station_reference ⇒ Object
Returns the value of attribute station_reference.
-
#status ⇒ Object
Returns the value of attribute status.
-
#wiski_id ⇒ Object
Returns the value of attribute wiski_id.
Instance Method Summary collapse
Instance Attribute Details
#coverage_from ⇒ Object
Returns the value of attribute coverage_from
4 5 6 |
# File 'lib/smo_ea_hydrology/station.rb', line 4 def coverage_from @coverage_from end |
#coverage_to ⇒ Object
Returns the value of attribute coverage_to
4 5 6 |
# File 'lib/smo_ea_hydrology/station.rb', line 4 def coverage_to @coverage_to end |
#date_opened ⇒ Object
Returns the value of attribute date_opened
4 5 6 |
# File 'lib/smo_ea_hydrology/station.rb', line 4 def date_opened @date_opened end |
#easting ⇒ Object
Returns the value of attribute easting
4 5 6 |
# File 'lib/smo_ea_hydrology/station.rb', line 4 def easting @easting end |
#id ⇒ Object
Returns the value of attribute id
4 5 6 |
# File 'lib/smo_ea_hydrology/station.rb', line 4 def id @id end |
#label ⇒ Object
Returns the value of attribute label
4 5 6 |
# File 'lib/smo_ea_hydrology/station.rb', line 4 def label @label end |
#lat ⇒ Object
Returns the value of attribute lat
4 5 6 |
# File 'lib/smo_ea_hydrology/station.rb', line 4 def lat @lat end |
#long ⇒ Object
Returns the value of attribute long
4 5 6 |
# File 'lib/smo_ea_hydrology/station.rb', line 4 def long @long end |
#measure_id ⇒ Object
Returns the value of attribute measure_id
4 5 6 |
# File 'lib/smo_ea_hydrology/station.rb', line 4 def measure_id @measure_id end |
#measure_label ⇒ Object
Returns the value of attribute measure_label
4 5 6 |
# File 'lib/smo_ea_hydrology/station.rb', line 4 def measure_label @measure_label end |
#northing ⇒ Object
Returns the value of attribute northing
4 5 6 |
# File 'lib/smo_ea_hydrology/station.rb', line 4 def northing @northing end |
#station_reference ⇒ Object
Returns the value of attribute station_reference
4 5 6 |
# File 'lib/smo_ea_hydrology/station.rb', line 4 def station_reference @station_reference end |
#status ⇒ Object
Returns the value of attribute status
4 5 6 |
# File 'lib/smo_ea_hydrology/station.rb', line 4 def status @status end |
#wiski_id ⇒ Object
Returns the value of attribute 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_s ⇒ Object
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_s ⇒ Object
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 |