Class: Dingtalk::Client::Configurable::Configuration
- Inherits:
-
Object
- Object
- Dingtalk::Client::Configurable::Configuration
- Defined in:
- lib/dingtalk/client/configurable.rb
Overview
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
32 33 34 35 |
# File 'lib/dingtalk/client/configurable.rb', line 32 def initialize @group_robot_webhook_prefix = 'https://oapi.dingtalk.com/robot/send?access_token=' @template_dir = '.' end |
Instance Attribute Details
#group_robot_tokens ⇒ Object
37 38 39 40 41 |
# File 'lib/dingtalk/client/configurable.rb', line 37 def group_robot_tokens return @group_robot_tokens.symbolize_keys if @group_robot_tokens.is_a?(Hash) raise ConfigurationError.new(:group_robot_tokens, @group_robot_tokens, Hash) end |
#group_robot_webhook_prefix ⇒ Object
43 44 45 |
# File 'lib/dingtalk/client/configurable.rb', line 43 def group_robot_webhook_prefix String(@group_robot_webhook_prefix) end |
#template_dir ⇒ Object
47 48 49 |
# File 'lib/dingtalk/client/configurable.rb', line 47 def template_dir String(@template_dir) end |