Class: QuelinkMg::Resp::Gtsos
Constant Summary collapse
- GTSOS_RESP_KEYS =
%w[protocol_version unique_id device_name report_id report_type number gps_accuracy speed azimuth altitude longitude latitude gps_utc_time mcc mnc lac cel_id odo_mileage battery_percentage send_time count_number].freeze
Constants inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from QuelinkMg::Resp::Base
Instance Method Details
#hash ⇒ Object
10 11 12 |
# File 'lib/quelink-mg/resp/gtsos.rb', line 10 def hash unify_keys(GTSOS_RESP_KEYS.zip(@response.split(',')).to_h) end |