Class: WrfLibrary::Entity::Station
- Inherits:
-
Object
- Object
- WrfLibrary::Entity::Station
- Defined in:
- lib/wrf_library/entity/station.rb
Overview
Simple data class to represent a station entity
Instance Attribute Summary collapse
-
#coordinate ⇒ Coordinate
readonly
The geo coordinates of the station.
-
#descriptor ⇒ String
readonly
The description of the station.
-
#elevation ⇒ Number
readonly
The elevation of the station.
-
#name ⇒ String
readonly
The name of the station.
Instance Method Summary collapse
-
#initialize(name, descriptor, elevation, geo_coordinate) ⇒ Station
constructor
initialization.
Constructor Details
#initialize(name, descriptor, elevation, geo_coordinate) ⇒ Station
initialization
22 23 24 25 26 27 |
# File 'lib/wrf_library/entity/station.rb', line 22 def initialize(name, descriptor, elevation, geo_coordinate) @name = name @descriptor = descriptor @elevation = elevation @coordinate = geo_coordinate end |
Instance Attribute Details
#coordinate ⇒ Coordinate (readonly)
Returns the geo coordinates of the station.
15 16 17 |
# File 'lib/wrf_library/entity/station.rb', line 15 def coordinate @coordinate end |
#descriptor ⇒ String (readonly)
Returns the description of the station.
11 12 13 |
# File 'lib/wrf_library/entity/station.rb', line 11 def descriptor @descriptor end |
#elevation ⇒ Number (readonly)
Returns the elevation of the station.
13 14 15 |
# File 'lib/wrf_library/entity/station.rb', line 13 def elevation @elevation end |
#name ⇒ String (readonly)
Returns the name of the station.
9 10 11 |
# File 'lib/wrf_library/entity/station.rb', line 9 def name @name end |