Class: WeixinRailsMiddleware::Configuration
- Inherits:
-
Object
- Object
- WeixinRailsMiddleware::Configuration
- Defined in:
- lib/weixin_rails_middleware/configuration.rb
Instance Attribute Summary collapse
-
#engine_path ⇒ Object
Returns the value of attribute engine_path.
-
#public_account_class ⇒ Object
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,.
-
#weixin_secret_string ⇒ Object
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,.
-
#weixin_token_string ⇒ Object
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,.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_path ⇒ Object
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_class ⇒ Object
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 @public_account_class end |
#weixin_secret_string ⇒ Object
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_string ⇒ Object
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 |