Class: Togls::Feature
- Inherits:
-
Object
- Object
- Togls::Feature
- Defined in:
- lib/togls/feature.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(key, description) ⇒ Feature
constructor
A new instance of Feature.
Constructor Details
#initialize(key, description) ⇒ Feature
Returns a new instance of Feature.
5 6 7 8 |
# File 'lib/togls/feature.rb', line 5 def initialize(key, description) @key = key.to_s @description = description end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
3 4 5 |
# File 'lib/togls/feature.rb', line 3 def description @description end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
3 4 5 |
# File 'lib/togls/feature.rb', line 3 def key @key end |
Instance Method Details
#id ⇒ Object
10 11 12 |
# File 'lib/togls/feature.rb', line 10 def id @key end |