Sha256: b9bb9af27d95e73e1ee0375270bb9dda9585bafd0a154c949418de62eb9db72b
Contents?: true
Size: 588 Bytes
Versions: 14
Compression:
Stored size: 588 Bytes
Contents
module MatrixQQ class QQ class DBus attr_reader :obj def initialize(dbus) srv = dbus.service('org.dastudio.qq') @obj = srv.object '/org/dastudio/qq' @obj.default_iface = 'org.dastudio.cqhttp' end def respond_to_missing?(name, include_private = false) @obj.respond_to_missing? name, include_private end def method_missing(name, *args) super if args.size > 1 args << {} if args.empty? arg = args.first JSON.parse @obj.call(name.to_s, arg.to_json).first end end end end
Version data entries
14 entries across 14 versions & 1 rubygems