Class: Qywx::Client::Configurable::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/qywx/client/configurable.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_tokensObject

Raises:



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_prefixObject



45
46
47
# File 'lib/qywx/client/configurable.rb', line 45

def group_robot_webhook_prefix
  String(@group_robot_webhook_prefix)
end

#is_debuggingObject

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_dirObject



49
50
51
# File 'lib/qywx/client/configurable.rb', line 49

def template_dir
  String(@template_dir)
end