Class: ProvisioningClient

Inherits:
Object
  • Object
show all
Defined in:
lib/lockstep_sdk/clients/provisioning_client.rb

Instance Method Summary collapse

Constructor Details

#initialize(connection) ⇒ ProvisioningClient

Initialize the ProvisioningClient class with an API client instance.

Parameters:

  • connection (LockstepApi)

    The API client object for this connection



22
23
24
# File 'lib/lockstep_sdk/clients/provisioning_client.rb', line 22

def initialize(connection)
    @connection = connection
end

Instance Method Details

#provision_free_developer_account(body:) ⇒ Object

Creates a new account for a developer, sending an email with information on how to access the API.

Parameters:

  • body (DeveloperAccountSubmitModel)


30
31
32
33
# File 'lib/lockstep_sdk/clients/provisioning_client.rb', line 30

def (body:)
    path = "/api/v1/Provisioning/free-account"
    @connection.request(:post, path, body, nil)
end