Module: Qywx::Client::Configurable

Included in:
Qywx::Client
Defined in:
lib/qywx/client/configurable.rb

Overview

Examples:

Config single item

Qywx::Client.group_robot_tokens = { default: 'TOKENXXXXXXXXXXX' }

Config multiple items

Qywx::Client.configure do |config|
  config.group_robot_tokens         = { default: 'TOKENXXXXXXXBBXX' }
  config.group_robot_webhook_prefix = 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key='
end

Defined Under Namespace

Modules: ClassMethods Classes: Configuration

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



13
14
15
# File 'lib/qywx/client/configurable.rb', line 13

def self.included(base)
  base.extend ClassMethods
end