Class: QuelinkMg::Gl30meu::Resp::Gtpna

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

Constant Summary collapse

GTPNA_RESP_KEYS =
%w[protocol_version unique_id device_name power_on_type 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



9
10
11
# File 'lib/quelink-mg/gl30meu/resp/gtpna.rb', line 9

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