Class: Gps::Nmea::Zda
Instance Attribute Summary collapse
-
#day ⇒ Object
Returns the value of attribute day.
-
#hour ⇒ Object
Returns the value of attribute hour.
-
#local_zone_desc ⇒ Object
Returns the value of attribute local_zone_desc.
-
#local_zone_minutes ⇒ Object
Returns the value of attribute local_zone_minutes.
-
#minute ⇒ Object
Returns the value of attribute minute.
-
#month ⇒ Object
Returns the value of attribute month.
-
#second ⇒ Object
Returns the value of attribute second.
-
#year ⇒ Object
Returns the value of attribute year.
Attributes inherited from Sentence
Instance Method Summary collapse
-
#initialize(line) ⇒ Zda
constructor
A new instance of Zda.
Methods inherited from Sentence
#checksum_valid?, date_part_to_str, #generate_checksum, #get_checksum, #has_coordinates?, #has_datetime?, #lat_dec, #lat_long_dec, #long_dec, parse, time_part_to_str, #to_h, #to_json
Constructor Details
#initialize(line) ⇒ Zda
Returns a new instance of Zda.
7 8 9 10 11 |
# File 'lib/gps/nmea/zda.rb', line 7 def initialize(line) @line = line fill_parts fill_data end |
Instance Attribute Details
#day ⇒ Object
Returns the value of attribute day.
4 5 6 |
# File 'lib/gps/nmea/zda.rb', line 4 def day @day end |
#hour ⇒ Object
Returns the value of attribute hour.
4 5 6 |
# File 'lib/gps/nmea/zda.rb', line 4 def hour @hour end |
#local_zone_desc ⇒ Object
Returns the value of attribute local_zone_desc.
4 5 6 |
# File 'lib/gps/nmea/zda.rb', line 4 def local_zone_desc @local_zone_desc end |
#local_zone_minutes ⇒ Object
Returns the value of attribute local_zone_minutes.
4 5 6 |
# File 'lib/gps/nmea/zda.rb', line 4 def local_zone_minutes @local_zone_minutes end |
#minute ⇒ Object
Returns the value of attribute minute.
4 5 6 |
# File 'lib/gps/nmea/zda.rb', line 4 def minute @minute end |
#month ⇒ Object
Returns the value of attribute month.
4 5 6 |
# File 'lib/gps/nmea/zda.rb', line 4 def month @month end |
#second ⇒ Object
Returns the value of attribute second.
4 5 6 |
# File 'lib/gps/nmea/zda.rb', line 4 def second @second end |
#year ⇒ Object
Returns the value of attribute year.
4 5 6 |
# File 'lib/gps/nmea/zda.rb', line 4 def year @year end |