Class: QuelinkMg::Gl30meu::Resp::Gtati

Inherits:
Resp::Base
  • Object
show all
Defined in:
lib/quelink-mg/gl30meu/resp/gtati.rb

Constant Summary collapse

GTATI_RESP_KEYS =
%w[protocol_version unique_id device_name device_type ati_mask
firmware_version ble_firmware_version modem_firmware_version
wifi_firmware_version hardware_version modem_hardware_version
sensor_id send_time count_number].freeze

Constants inherited from Resp::Base

Resp::Base::QUELINK_DATE_FORMAT

Instance Method Summary collapse

Methods inherited from Resp::Base

#initialize

Constructor Details

This class inherits a constructor from QuelinkMg::Resp::Base

Instance Method Details

#hashObject



12
13
14
# File 'lib/quelink-mg/gl30meu/resp/gtati.rb', line 12

def hash
  unify_keys(GTATI_RESP_KEYS.zip(@response.split(',')).to_h, true)
end