Class: Raas::Configuration

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

Overview

All configuration including auth info and base URI for the API access are configured in this class.

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.



57
58
59
# File 'lib/raas/configuration.rb', line 57

def array_serialization
  @array_serialization
end

.environmentObject

Returns the value of attribute environment.



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

def environment
  @environment
end

.environmentsObject

Returns the value of attribute environments.



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

def environments
  @environments
end

.platform_keyObject

Returns the value of attribute platform_key.



61
62
63
# File 'lib/raas/configuration.rb', line 61

def platform_key
  @platform_key
end

.platform_nameObject

Returns the value of attribute platform_name.



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

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. required.

Parameters:

Returns:



51
52
53
# File 'lib/raas/configuration.rb', line 51

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