Class: FeatureFlagsClient
- Inherits:
-
Object
- Object
- FeatureFlagsClient
- Defined in:
- lib/lockstep_sdk/clients/feature_flags_client.rb
Instance Method Summary collapse
-
#initialize(connection) ⇒ FeatureFlagsClient
constructor
Initialize the FeatureFlagsClient class with an API client instance.
-
#retrieve_feature_flags(body:) ⇒ Object
Retrieves the specified feature flags.
Constructor Details
#initialize(connection) ⇒ FeatureFlagsClient
Initialize the FeatureFlagsClient class with an API client instance.
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.
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 |