Class: FlipTheSwitch::Feature
- Inherits:
-
Struct
- Object
- Struct
- FlipTheSwitch::Feature
- Defined in:
- lib/flip_the_switch/feature.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#name ⇒ Object
Returns the value of attribute name.
-
#parent_name ⇒ Object
Returns the value of attribute parent_name.
-
#sub_features ⇒ Object
Returns the value of attribute sub_features.
Instance Method Summary collapse
- #has_parent? ⇒ Boolean
-
#initialize(name, enabled, description = nil, sub_features = [], parent_name = nil) ⇒ Feature
constructor
A new instance of Feature.
Constructor Details
#initialize(name, enabled, description = nil, sub_features = [], parent_name = nil) ⇒ Feature
3 4 5 |
# File 'lib/flip_the_switch/feature.rb', line 3 def initialize(name, enabled, description = nil, sub_features = [], parent_name = nil) super(name, enabled, description, sub_features, parent_name) end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description
2 3 4 |
# File 'lib/flip_the_switch/feature.rb', line 2 def description @description end |
#enabled ⇒ Object
Returns the value of attribute enabled
2 3 4 |
# File 'lib/flip_the_switch/feature.rb', line 2 def enabled @enabled end |
#name ⇒ Object
Returns the value of attribute name
2 3 4 |
# File 'lib/flip_the_switch/feature.rb', line 2 def name @name end |
#parent_name ⇒ Object
Returns the value of attribute parent_name
2 3 4 |
# File 'lib/flip_the_switch/feature.rb', line 2 def parent_name @parent_name end |
#sub_features ⇒ Object
Returns the value of attribute sub_features
2 3 4 |
# File 'lib/flip_the_switch/feature.rb', line 2 def sub_features @sub_features end |
Instance Method Details
#has_parent? ⇒ Boolean
7 8 9 |
# File 'lib/flip_the_switch/feature.rb', line 7 def has_parent? parent_name end |