Class: Qywx::Client::Configurable::Configuration
- Inherits:
-
Object
- Object
- Qywx::Client::Configurable::Configuration
- Defined in:
- lib/qywx/client/configurable.rb
Overview
Instance Attribute Summary collapse
- #group_robot_tokens ⇒ Object
- #group_robot_webhook_prefix ⇒ Object
-
#is_debugging ⇒ Object
Returns the value of attribute is_debugging.
- #template_dir ⇒ Object
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
33 34 35 36 37 |
# File 'lib/qywx/client/configurable.rb', line 33 def initialize @group_robot_webhook_prefix = 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=' @template_dir = '.' @is_debugging = false end |
Instance Attribute Details
#group_robot_tokens ⇒ Object
39 40 41 42 43 |
# File 'lib/qywx/client/configurable.rb', line 39 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
45 46 47 |
# File 'lib/qywx/client/configurable.rb', line 45 def group_robot_webhook_prefix String(@group_robot_webhook_prefix) end |
#is_debugging ⇒ Object
Returns the value of attribute is_debugging.
31 32 33 |
# File 'lib/qywx/client/configurable.rb', line 31 def is_debugging @is_debugging end |
#template_dir ⇒ Object
49 50 51 |
# File 'lib/qywx/client/configurable.rb', line 49 def template_dir String(@template_dir) end |