Class: QuelinkMg::Gl30meu::Ack::Gtrto

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

Constant Summary collapse

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

Constants inherited from Ack::Base

Ack::Base::QUELINK_DATE_FORMAT

Instance Method Summary collapse

Methods inherited from Ack::Base

#initialize

Constructor Details

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

Instance Method Details

#hashObject



10
11
12
# File 'lib/quelink-mg/gl30meu/ack/gtrto.rb', line 10

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