Class: Cmsso::Configuration
- Inherits:
-
Object
- Object
- Cmsso::Configuration
- Defined in:
- lib/cmsso/configuration.rb
Instance Attribute Summary collapse
-
#base_uri ⇒ Object
Returns the value of attribute base_uri.
-
#module_key ⇒ Object
Returns the value of attribute module_key.
-
#proxy ⇒ Object
Returns the value of attribute proxy.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 13 14 15 16 |
# File 'lib/cmsso/configuration.rb', line 8 def initialize @environment = nil if Rails.env.production? @environment = "-test" if Rails.env.development? || Rails.env.test? @environment = "-int" if Rails.env.integration? @proxy = nil @module_key = "cm_chbs_portal" @base_uri = "http://cmservice-chbs#{@environment}.novartis.net:3056/persons" end |
Instance Attribute Details
#base_uri ⇒ Object
Returns the value of attribute base_uri.
5 6 7 |
# File 'lib/cmsso/configuration.rb', line 5 def base_uri @base_uri end |
#module_key ⇒ Object
Returns the value of attribute module_key.
4 5 6 |
# File 'lib/cmsso/configuration.rb', line 4 def module_key @module_key end |
#proxy ⇒ Object
Returns the value of attribute proxy.
6 7 8 |
# File 'lib/cmsso/configuration.rb', line 6 def proxy @proxy end |