Class: YolQyWeixin::Client
- Inherits:
-
Object
- Object
- YolQyWeixin::Client
- Includes:
- YolQyWeixin::Connection::Base, YolQyWeixin::Connection::Department, YolQyWeixin::Connection::Message, YolQyWeixin::Connection::Qrcode, YolQyWeixin::Connection::Template, YolQyWeixin::Connection::User
- Defined in:
- lib/yol_qy_weixin/client.rb
Instance Attribute Summary collapse
-
#corpid ⇒ Object
Returns the value of attribute corpid.
-
#redis ⇒ Object
Returns the value of attribute redis.
-
#secret ⇒ Object
Returns the value of attribute secret.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from YolQyWeixin::Connection::Message
Methods included from YolQyWeixin::Connection::Department
Methods included from YolQyWeixin::Connection::User
#get_user_id, #get_user_info, #get_users_by_department
Methods included from YolQyWeixin::Connection::Template
Methods included from YolQyWeixin::Connection::Qrcode
Methods included from YolQyWeixin::Connection::Base
#get_access_token, #http_get, #http_post
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
16 17 18 19 20 |
# File 'lib/yol_qy_weixin/client.rb', line 16 def initialize( = {}) @corpid = [:corpid] || YolQyWeixin.configuration.corpid @secret = [:secret] || YolQyWeixin.configuration.secret @redis = [:redis] || YolQyWeixin.configuration.redis end |
Instance Attribute Details
#corpid ⇒ Object
Returns the value of attribute corpid.
14 15 16 |
# File 'lib/yol_qy_weixin/client.rb', line 14 def corpid @corpid end |
#redis ⇒ Object
Returns the value of attribute redis.
14 15 16 |
# File 'lib/yol_qy_weixin/client.rb', line 14 def redis @redis end |
#secret ⇒ Object
Returns the value of attribute secret.
14 15 16 |
# File 'lib/yol_qy_weixin/client.rb', line 14 def secret @secret end |