Class: QuelinkMg::Ack::Gtsri

Inherits:
Base
  • Object
show all
Defined in:
lib/quelink-mg/ack/gtsri.rb

Constant Summary collapse

GTSRI_ACK_KEYS =
%w[protocol_version unique_id device_name serial_number send_time count_number].freeze

Constants inherited from Base

Base::QUELINK_DATE_FORMAT

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

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

Instance Method Details

#hashObject



8
9
10
# File 'lib/quelink-mg/ack/gtsri.rb', line 8

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