Module: Confidence::OpenFeature
- Defined in:
- lib/confidence/openfeature/errors.rb,
lib/confidence/openfeature/version.rb,
lib/confidence/openfeature/provider.rb,
lib/confidence/openfeature/api_client.rb
Defined Under Namespace
Classes: APIClient, APIError, BaseError, FlagNotFoundError, Provider, Region, ResolvedFlag, TypeMismatchError
Constant Summary collapse
- VERSION =
x-release-please-version
"0.1.4"
Class Method Summary collapse
Class Method Details
.parse_variant(value) ⇒ Object
114 115 116 117 118 119 120 |
# File 'lib/confidence/openfeature/provider.rb', line 114 def self.parse_variant(value) components = value.split("/", 4) if components.length != 4 || components[0] != "flags" || components[2] != "variants" raise ArgumentError.new("Invalid variant name: #{value}") end components[3] end |