Class: Yinxiangma::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_urlObject

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

#modeObject

Returns the value of attribute mode.



4
5
6
# File 'lib/yinxiangma/configuration.rb', line 4

def mode
  @mode
end

#publisher_keyObject

Returns the value of attribute publisher_key.



4
5
6
# File 'lib/yinxiangma/configuration.rb', line 4

def publisher_key
  @publisher_key
end

#reg_urlObject

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_envObject

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_urlObject

Returns the value of attribute token_url.



4
5
6
# File 'lib/yinxiangma/configuration.rb', line 4

def token_url
  @token_url
end

#valid_urlObject

Returns the value of attribute valid_url.



4
5
6
# File 'lib/yinxiangma/configuration.rb', line 4

def valid_url
  @valid_url
end