Sha256: 519e876ee9b3268c726c1dae31769870891f016fa5bcddd5219839d002e78de1
Contents?: true
Size: 555 Bytes
Versions: 4
Compression:
Stored size: 555 Bytes
Contents
# encoding=utf-8 module OPQ class Msg def initialize(msg) @type = msg['CurrentPacket']['EventData']['MsgHead']['FromType'] @from_uin = msg['CurrentPacket']['EventData']['MsgHead']['FromUin'] @sender_uin = msg['CurrentPacket']['EventData']['MsgHead']['SenderUin'] @text = msg['CurrentPacket']['EventData']['MsgBody']['Content'] @msg_type = msg['CurrentPacket']['EventData']['MsgHead']['MsgType'] @raw_json = msg end attr_accessor :type,:from_uin,:sender_uin,:text,:msg_type,:raw_json end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
opqr-0.1.5 | lib/opqr/struct.rb |
opqr-0.1.4 | lib/opqr/struct.rb |
opqr-0.1.3 | lib/opqr/struct.rb |
opqr-0.1.2 | lib/opqr/struct.rb |