Class: Dznkyciabp::Configuration
- Inherits:
-
Object
- Object
- Dznkyciabp::Configuration
- Defined in:
- lib/dznkyciabp/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.
-
.basic_auth_password ⇒ Object
Returns the value of attribute basic_auth_password.
-
.basic_auth_user_name ⇒ Object
Returns the value of attribute basic_auth_user_name.
-
.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.
67 68 69 |
# File 'lib/dznkyciabp/configuration.rb', line 67 def array_serialization @array_serialization end |
.basic_auth_password ⇒ Object
Returns the value of attribute basic_auth_password.
73 74 75 |
# File 'lib/dznkyciabp/configuration.rb', line 73 def basic_auth_password @basic_auth_password end |
.basic_auth_user_name ⇒ Object
Returns the value of attribute basic_auth_user_name.
72 73 74 |
# File 'lib/dznkyciabp/configuration.rb', line 72 def basic_auth_user_name @basic_auth_user_name end |
.environment ⇒ Object
Returns the value of attribute environment.
68 69 70 |
# File 'lib/dznkyciabp/configuration.rb', line 68 def environment @environment end |
.environments ⇒ Object
Returns the value of attribute environments.
69 70 71 |
# File 'lib/dznkyciabp/configuration.rb', line 69 def environments @environments end |
.port ⇒ Object
Returns the value of attribute port.
70 71 72 |
# File 'lib/dznkyciabp/configuration.rb', line 70 def port @port end |
.suites ⇒ Object
Returns the value of attribute suites.
71 72 73 |
# File 'lib/dznkyciabp/configuration.rb', line 71 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.
55 56 57 58 59 60 61 62 63 |
# File 'lib/dznkyciabp/configuration.rb', line 55 def self.get_base_uri(server = Server::DEFAULT) parameters = { 'port' => port, 'suites' => suites } APIHelper.append_url_with_template_parameters( environments[environment][server], parameters ) end |