Commit e4fb872f by zmj

fix 初始化参数

parent 0c60a2b2
...@@ -6,8 +6,9 @@ require 'app_push/log' ...@@ -6,8 +6,9 @@ require 'app_push/log'
require 'igetui' require 'igetui'
module AppPush module AppPush
class Push class Push
class << self
attr_accessor :igetui_config, :xiaomi_config attr_accessor :igetui_config, :xiaomi_config
def initialize(opts = {}) def init(opts = {})
opts = opts.with_indifferent_access opts = opts.with_indifferent_access
# { # {
# base: { # base: {
...@@ -63,4 +64,5 @@ module AppPush ...@@ -63,4 +64,5 @@ module AppPush
Log.error(err) Log.error(err)
end end
end end
end
end end
module AppPush module AppPush
VERSION = "0.1" VERSION = "0.11"
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment