Commit de3f93fb by lanrion

added Client

parent d1c0bf53
require "weixin_authorize/version"
module WeixinAuthorize
# Your code goes here...
# @client ||= WeixinAuthorize.configure do |config|
# config.app_id = "app_id-xxxxxxx"
# config.app_secret = "app_secret-xxxxxxx"
# end
#
class << self
def configure(&block)
Client.new(&block)
end
end
end
module WeixinAuthorize
class Client
attr_accessor :app_id, :app_secret
attr_accessor :access_token
def initialize(&block)
instance_eval(&block)
end
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