Class: Yinxiangma::Configuration
- Inherits:
-
Object
- Object
- Yinxiangma::Configuration
- Defined in:
- lib/yinxiangma/configuration.rb
Instance Attribute Summary collapse
-
#api_server_url ⇒ Object
Returns the value of attribute api_server_url.
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#publisher_key ⇒ Object
Returns the value of attribute publisher_key.
-
#reg_url ⇒ Object
Returns the value of attribute reg_url.
-
#skip_valid_env ⇒ Object
Returns the value of attribute skip_valid_env.
-
#token_url ⇒ Object
Returns the value of attribute token_url.
-
#valid_url ⇒ Object
Returns the value of attribute valid_url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/yinxiangma/configuration.rb', line 12 def initialize @api_server_url = YINXIANGMA_API_SERVER_URL @token_url = YINXIANGMA_TOKEN_URL @valid_url = YINXIANGMA_VALID_URL @skip_valid_env = SKIP_VALID_ENV @reg_url = YINXIANGMA_REGISTER_URL @publisher_key = ENV['YINXIANGMA_PUBLISHER_KEY'] @mode = ENV['YINXIANGMA_DISPLAY_MODE'] ||= YINXIANGMA_DISPLAY_MODE end |
Instance Attribute Details
#api_server_url ⇒ Object
Returns the value of attribute api_server_url.
4 5 6 |
# File 'lib/yinxiangma/configuration.rb', line 4 def api_server_url @api_server_url end |
#mode ⇒ Object
Returns the value of attribute mode.
4 5 6 |
# File 'lib/yinxiangma/configuration.rb', line 4 def mode @mode end |
#publisher_key ⇒ Object
Returns the value of attribute publisher_key.
4 5 6 |
# File 'lib/yinxiangma/configuration.rb', line 4 def publisher_key @publisher_key end |
#reg_url ⇒ Object
Returns the value of attribute reg_url.
4 5 6 |
# File 'lib/yinxiangma/configuration.rb', line 4 def reg_url @reg_url end |
#skip_valid_env ⇒ Object
Returns the value of attribute skip_valid_env.
4 5 6 |
# File 'lib/yinxiangma/configuration.rb', line 4 def skip_valid_env @skip_valid_env end |
#token_url ⇒ Object
Returns the value of attribute token_url.
4 5 6 |
# File 'lib/yinxiangma/configuration.rb', line 4 def token_url @token_url end |
#valid_url ⇒ Object
Returns the value of attribute valid_url.
4 5 6 |
# File 'lib/yinxiangma/configuration.rb', line 4 def valid_url @valid_url end |