Module: Dingtalk::Client::Configurable

Included in:
Dingtalk::Client
Defined in:
lib/dingtalk/client/configurable.rb

Overview

Examples:

Config single item

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

Config multiple items

Dingtalk::Client.configure do |config|
  config.group_robot_tokens         = { default: 'TOKENXXXXXXXBBXX' }
  config.group_robot_webhook_prefix = 'http://dingtalk.com?access_token='
end

Defined Under Namespace

Modules: ClassMethods Classes: Configuration

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



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

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