class SimpleMetarParser::MetarOther

Attributes

station[R]
station_auto[R]

Public Instance Methods

decode_split(s) click to toggle source
# File lib/simple_metar_parser/metar/metar_other.rb, line 13
def decode_split(s)
  if s.strip == 'AO1'
    @station = :auto_without_precipitation
  elsif s.strip == 'A02'
    @station = :auto_with_precipitation
  end

  # fully automated station
  if s.strip == 'AUTO'
    @station_auto = true
  end

end
reset() click to toggle source
# File lib/simple_metar_parser/metar/metar_other.rb, line 6
def reset
  @station = nil
  @station_auto = false
end