Class: ApiConnectClient::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/api_connect_client/config.rb

Class Method Summary collapse

Class Method Details

.contextObject



9
10
11
# File 'lib/api_connect_client/config.rb', line 9

def context
  @context ||= ''
end

.endpointObject



17
18
19
# File 'lib/api_connect_client/config.rb', line 17

def endpoint
  @endpoint ||= 'https://us.apiconnect.ibmcloud.com/v1/portal'
end

.manager_passwordObject



30
31
32
# File 'lib/api_connect_client/config.rb', line 30

def manager_password
  @manager_password ||= ''
end

.manager_usernameObject



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