Class: Raas::Configuration

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

Defined Under Namespace

Classes: Environment, Server

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.array_serializationObject

Returns the value of attribute array_serialization.



65
66
67
# File 'lib/raas/configuration.rb', line 65

def array_serialization
  @array_serialization
end

.environmentObject

Returns the value of attribute environment.



66
67
68
# File 'lib/raas/configuration.rb', line 66

def environment
  @environment
end

.environmentsObject

Returns the value of attribute environments.



67
68
69
# File 'lib/raas/configuration.rb', line 67

def environments
  @environments
end

.platform_keyObject

Returns the value of attribute platform_key.



69
70
71
# File 'lib/raas/configuration.rb', line 69

def platform_key
  @platform_key
end

.platform_nameObject

Returns the value of attribute platform_name.



68
69
70
# File 'lib/raas/configuration.rb', line 68

def platform_name
  @platform_name
end

Class Method Details

.get_base_uri(server = Server::DEFAULT) ⇒ String

Generates the appropriate base URI for the environment and the server.

Parameters:

Returns:



59
60
61
# File 'lib/raas/configuration.rb', line 59

def self.get_base_uri(server = Server::DEFAULT)
  environments[environment][server]
end