Class: Tester::Configuration
- Inherits:
-
Object
- Object
- Tester::Configuration
- Defined in:
- lib/tester/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
-
.array_serialization ⇒ Object
Returns the value of attribute array_serialization.
-
.environment ⇒ Object
Returns the value of attribute environment.
-
.environments ⇒ Object
Returns the value of attribute environments.
-
.port ⇒ Object
Returns the value of attribute port.
-
.suites ⇒ Object
Returns the value of attribute suites.
Class Method Summary collapse
-
.get_base_uri(server = Server::DEFAULT) ⇒ String
Generates the appropriate base URI for the environment and the server.
Class Attribute Details
.array_serialization ⇒ Object
Returns the value of attribute array_serialization.
59 60 61 |
# File 'lib/tester/configuration.rb', line 59 def array_serialization @array_serialization end |
.environment ⇒ Object
Returns the value of attribute environment.
60 61 62 |
# File 'lib/tester/configuration.rb', line 60 def environment @environment end |
.environments ⇒ Object
Returns the value of attribute environments.
61 62 63 |
# File 'lib/tester/configuration.rb', line 61 def environments @environments end |
.port ⇒ Object
Returns the value of attribute port.
62 63 64 |
# File 'lib/tester/configuration.rb', line 62 def port @port end |
.suites ⇒ Object
Returns the value of attribute suites.
63 64 65 |
# File 'lib/tester/configuration.rb', line 63 def suites @suites end |
Class Method Details
.get_base_uri(server = Server::DEFAULT) ⇒ String
Generates the appropriate base URI for the environment and the server. required.
47 48 49 50 51 52 53 54 55 |
# File 'lib/tester/configuration.rb', line 47 def self.get_base_uri(server = Server::DEFAULT) parameters = { 'port' => port, 'suites' => suites } APIHelper.append_url_with_template_parameters( environments[environment][server], parameters ) end |