Class: WeixinRailsMiddleware::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/weixin_rails_middleware/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



23
24
25
# File 'lib/weixin_rails_middleware/configuration.rb', line 23

def initialize
  @engine_path = DEFAULT_ENGINE_PATH
end

Instance Attribute Details

#engine_pathObject

Returns the value of attribute engine_path.



21
22
23
# File 'lib/weixin_rails_middleware/configuration.rb', line 21

def engine_path
  @engine_path
end

#public_account_classObject

use ‘public_account_class’: if the token is saved in SomeModel, then find token by it use ‘weixin_token’: if the token is a String, just use it,



20
21
22
# File 'lib/weixin_rails_middleware/configuration.rb', line 20

def 
  
end

#weixin_secret_stringObject

use ‘public_account_class’: if the token is saved in SomeModel, then find token by it use ‘weixin_token’: if the token is a String, just use it,



20
21
22
# File 'lib/weixin_rails_middleware/configuration.rb', line 20

def weixin_secret_string
  @weixin_secret_string
end

#weixin_token_stringObject

use ‘public_account_class’: if the token is saved in SomeModel, then find token by it use ‘weixin_token’: if the token is a String, just use it,



20
21
22
# File 'lib/weixin_rails_middleware/configuration.rb', line 20

def weixin_token_string
  @weixin_token_string
end