Class: ApiConnectClient::Config
- Inherits:
-
Object
- Object
- ApiConnectClient::Config
- Defined in:
- lib/api_connect_client/config.rb
Class Method Summary collapse
- .context ⇒ Object
- .endpoint ⇒ Object
- .manager_password ⇒ Object
- .manager_username ⇒ Object
- .register_context(context) ⇒ Object
- .register_endpoint(endpoint) ⇒ Object
- .register_manager_credentials(username, password) ⇒ Object
Class Method Details
.context ⇒ Object
9 10 11 |
# File 'lib/api_connect_client/config.rb', line 9 def context @context ||= '' end |
.endpoint ⇒ Object
17 18 19 |
# File 'lib/api_connect_client/config.rb', line 17 def endpoint @endpoint ||= 'https://us.apiconnect.ibmcloud.com/v1/portal' end |
.manager_password ⇒ Object
30 31 32 |
# File 'lib/api_connect_client/config.rb', line 30 def manager_password @manager_password ||= '' end |
.manager_username ⇒ Object
26 27 28 |
# File 'lib/api_connect_client/config.rb', line 26 def manager_username @manager_username ||= '' end |
.register_context(context) ⇒ Object
5 6 7 |
# File 'lib/api_connect_client/config.rb', line 5 def register_context(context) @context = context end |
.register_endpoint(endpoint) ⇒ Object
13 14 15 |
# File 'lib/api_connect_client/config.rb', line 13 def register_endpoint(endpoint) @endpoint = endpoint end |
.register_manager_credentials(username, password) ⇒ Object
21 22 23 24 |
# File 'lib/api_connect_client/config.rb', line 21 def register_manager_credentials(username, password) @manager_username = username @manager_password = password end |