Class: Metar::Raw::Data
Overview
Use this class when you have a METAR string and the date of reading
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(metar, time = nil) ⇒ Data
constructor
A new instance of Data.
Constructor Details
#initialize(metar, time = nil) ⇒ Data
Returns a new instance of Data.
18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/metar/raw.rb', line 18 def initialize(, time = nil) if time.nil? warn <<-WARNING Using Metar::Raw::Data without a time parameter is deprecated. Please supply the reading time as the second parameter. WARNING time = Time.now end @metar = @time = time end |