Class: Wechat::ApiConfig
- Inherits:
-
Object
- Object
- Wechat::ApiConfig
- Defined in:
- lib/wechat/api_config.rb
Instance Attribute Summary collapse
-
#appid ⇒ Object
readonly
Returns the value of attribute appid.
-
#jsapi_ticket_file ⇒ Object
readonly
Returns the value of attribute jsapi_ticket_file.
-
#network_setting ⇒ Object
readonly
Returns the value of attribute network_setting.
-
#secret ⇒ Object
readonly
Returns the value of attribute secret.
-
#token_file ⇒ Object
readonly
Returns the value of attribute token_file.
Instance Method Summary collapse
-
#initialize(appid, secret, token_file, jsapi_ticket_file, network_setting) ⇒ ApiConfig
constructor
A new instance of ApiConfig.
Constructor Details
#initialize(appid, secret, token_file, jsapi_ticket_file, network_setting) ⇒ ApiConfig
Returns a new instance of ApiConfig.
7 8 9 10 11 12 13 |
# File 'lib/wechat/api_config.rb', line 7 def initialize(appid, secret, token_file, jsapi_ticket_file, network_setting) @appid = appid @secret = secret @token_file = token_file @jsapi_ticket_file = jsapi_ticket_file @network_setting = network_setting end |
Instance Attribute Details
#appid ⇒ Object (readonly)
Returns the value of attribute appid.
5 6 7 |
# File 'lib/wechat/api_config.rb', line 5 def appid @appid end |
#jsapi_ticket_file ⇒ Object (readonly)
Returns the value of attribute jsapi_ticket_file.
5 6 7 |
# File 'lib/wechat/api_config.rb', line 5 def jsapi_ticket_file @jsapi_ticket_file end |
#network_setting ⇒ Object (readonly)
Returns the value of attribute network_setting.
5 6 7 |
# File 'lib/wechat/api_config.rb', line 5 def network_setting @network_setting end |
#secret ⇒ Object (readonly)
Returns the value of attribute secret.
5 6 7 |
# File 'lib/wechat/api_config.rb', line 5 def secret @secret end |
#token_file ⇒ Object (readonly)
Returns the value of attribute token_file.
5 6 7 |
# File 'lib/wechat/api_config.rb', line 5 def token_file @token_file end |