Class: Metar::Data::Base
- Inherits:
-
Object
- Object
- Metar::Data::Base
- Defined in:
- lib/metar/data/base.rb
Direct Known Subclasses
DensityAltitude, Lightning, Observer, Pressure, RunwayVisibleRange, SkyCondition, StationCode, TemperatureAndDewPoint, Time, VariableWind, VerticalVisibility, Visibility, WeatherPhenomenon, Wind
Instance Attribute Summary collapse
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(raw) ⇒ Base
constructor
A new instance of Base.
- #value ⇒ Object
Constructor Details
permalink #initialize(raw) ⇒ Base
Returns a new instance of Base.
12 13 14 |
# File 'lib/metar/data/base.rb', line 12 def initialize(raw) @raw = raw end |
Instance Attribute Details
permalink #raw ⇒ Object (readonly)
Returns the value of attribute raw.
10 11 12 |
# File 'lib/metar/data/base.rb', line 10 def raw @raw end |
Class Method Details
permalink .parse(raw) ⇒ Object
[View source]
6 7 8 |
# File 'lib/metar/data/base.rb', line 6 def self.parse(raw) new(raw) end |
Instance Method Details
permalink #value ⇒ Object
[View source]
16 17 18 |
# File 'lib/metar/data/base.rb', line 16 def value raw end |