Class: Gps::Nmea::Zda

Inherits:
Sentence show all
Defined in:
lib/gps/nmea/zda.rb

Instance Attribute Summary collapse

Attributes inherited from Sentence

#line

Instance Method Summary collapse

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

#dayObject

Returns the value of attribute day.



4
5
6
# File 'lib/gps/nmea/zda.rb', line 4

def day
  @day
end

#hourObject

Returns the value of attribute hour.



4
5
6
# File 'lib/gps/nmea/zda.rb', line 4

def hour
  @hour
end

#local_zone_descObject

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_minutesObject

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

#minuteObject

Returns the value of attribute minute.



4
5
6
# File 'lib/gps/nmea/zda.rb', line 4

def minute
  @minute
end

#monthObject

Returns the value of attribute month.



4
5
6
# File 'lib/gps/nmea/zda.rb', line 4

def month
  @month
end

#secondObject

Returns the value of attribute second.



4
5
6
# File 'lib/gps/nmea/zda.rb', line 4

def second
  @second
end

#yearObject

Returns the value of attribute year.



4
5
6
# File 'lib/gps/nmea/zda.rb', line 4

def year
  @year
end