Class: FeatureFlagger::Feature
- Inherits:
-
Object
- Object
- FeatureFlagger::Feature
- Defined in:
- lib/feature_flagger/feature.rb
Instance Method Summary collapse
- #description ⇒ Object
-
#initialize(feature_key, resource_name) ⇒ Feature
constructor
A new instance of Feature.
- #key ⇒ Object
Constructor Details
#initialize(feature_key, resource_name) ⇒ Feature
Returns a new instance of Feature.
7 8 9 10 11 |
# File 'lib/feature_flagger/feature.rb', line 7 def initialize(feature_key, resource_name) @key_resolver = KeyResolver.new(feature_key, resource_name.to_s) fetch_data end |
Instance Method Details
#description ⇒ Object
13 14 15 |
# File 'lib/feature_flagger/feature.rb', line 13 def description @data['description'] end |
#key ⇒ Object
17 18 19 |
# File 'lib/feature_flagger/feature.rb', line 17 def key @key_resolver.normalized_key.join(':') end |