Class: Cmsso::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_uriObject

Returns the value of attribute base_uri.



5
6
7
# File 'lib/cmsso/configuration.rb', line 5

def base_uri
  @base_uri
end

#module_keyObject

Returns the value of attribute module_key.



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

def module_key
  @module_key
end

#proxyObject

Returns the value of attribute proxy.



6
7
8
# File 'lib/cmsso/configuration.rb', line 6

def proxy
  @proxy
end