Class: SmoEaHydrology::InventoryEntry
- Inherits:
-
Struct
- Object
- Struct
- SmoEaHydrology::InventoryEntry
- Defined in:
- lib/smo_ea_hydrology/inventory_entry.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.
-
#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.
-
#northing ⇒ Object
Returns the value of attribute northing.
-
#period_name ⇒ Object
Returns the value of attribute period_name.
-
#station_label ⇒ Object
Returns the value of attribute station_label.
-
#station_reference ⇒ Object
Returns the value of attribute station_reference.
-
#unit_name ⇒ Object
Returns the value of attribute unit_name.
-
#value_type ⇒ Object
Returns the value of attribute value_type.
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/inventory_entry.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/inventory_entry.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/inventory_entry.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/inventory_entry.rb', line 4 def easting @easting end |
#lat ⇒ Object
Returns the value of attribute lat
4 5 6 |
# File 'lib/smo_ea_hydrology/inventory_entry.rb', line 4 def lat @lat end |
#long ⇒ Object
Returns the value of attribute long
4 5 6 |
# File 'lib/smo_ea_hydrology/inventory_entry.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/inventory_entry.rb', line 4 def measure_id @measure_id end |
#northing ⇒ Object
Returns the value of attribute northing
4 5 6 |
# File 'lib/smo_ea_hydrology/inventory_entry.rb', line 4 def northing @northing end |
#period_name ⇒ Object
Returns the value of attribute period_name
4 5 6 |
# File 'lib/smo_ea_hydrology/inventory_entry.rb', line 4 def period_name @period_name end |
#station_label ⇒ Object
Returns the value of attribute station_label
4 5 6 |
# File 'lib/smo_ea_hydrology/inventory_entry.rb', line 4 def station_label @station_label end |
#station_reference ⇒ Object
Returns the value of attribute station_reference
4 5 6 |
# File 'lib/smo_ea_hydrology/inventory_entry.rb', line 4 def station_reference @station_reference end |
#unit_name ⇒ Object
Returns the value of attribute unit_name
4 5 6 |
# File 'lib/smo_ea_hydrology/inventory_entry.rb', line 4 def unit_name @unit_name end |
#value_type ⇒ Object
Returns the value of attribute 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_s ⇒ Object
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_s ⇒ Object
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 |