Module: EasyWeixin
- Defined in:
- lib/easy_weixin/api.rb,
lib/easy_weixin.rb,
lib/easy_weixin/auth.rb,
lib/easy_weixin/menu.rb,
lib/easy_weixin/config.rb,
lib/easy_weixin/message.rb,
lib/easy_weixin/version.rb,
lib/easy_weixin/response.rb
Overview
接入认证
Defined Under Namespace
Modules: Menu, Response Classes: Api, Auth, Config, Item, Message, NewsReplyMessage, ReplyMessage, TextReplyMessage
Constant Summary collapse
- VERSION =
"0.1.0"
Class Attribute Summary collapse
-
.config ⇒ Object
Returns the value of attribute config.
Class Method Summary collapse
Class Attribute Details
.config ⇒ Object
Returns the value of attribute config.
4 5 6 |
# File 'lib/easy_weixin/config.rb', line 4 def config @config end |
Class Method Details
.configure {|self.config ||= Config.new| ... } ⇒ Object
6 7 8 |
# File 'lib/easy_weixin/config.rb', line 6 def configure yield self.config ||= Config.new end |
.weixin_redis ⇒ Object
10 11 12 13 14 |
# File 'lib/easy_weixin/config.rb', line 10 def weixin_redis # use add log return nil if EasyWeixin.config.nil? EasyWeixin.config.redis end |