Class: FeatureFlagsClient

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

Instance Method Summary collapse

Constructor Details

#initialize(connection) ⇒ FeatureFlagsClient

Initialize the FeatureFlagsClient class with an API client instance.

Parameters:

  • connection (LockstepApi)

    The API client object for this connection



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

def initialize(connection)
    @connection = connection
end

Instance Method Details

#retrieve_feature_flags(body:) ⇒ Object

Retrieves the specified feature flags. True if they are enabled, false otherwise.

Parameters:

  • body (FeatureFlagsRequestModel)


31
32
33
34
# File 'lib/lockstep_sdk/clients/feature_flags_client.rb', line 31

def retrieve_feature_flags(body:)
    path = "/api/v1/feature-flags"
    @connection.request(:post, path, body, nil)
end