Class: WeixinRailsMiddleware::Configuration

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

Instance Attribute Summary collapse

Instance Attribute Details

#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 
  @public_account_class
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