Class: Togls::Feature

Inherits:
Object
  • Object
show all
Defined in:
lib/togls/feature.rb

Overview

Feature

The Feature model is the business representation of a feature. It is how Togls primarily interfaces with the concept of a feature.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, description) ⇒ Feature

Returns a new instance of Feature.



9
10
11
12
# File 'lib/togls/feature.rb', line 9

def initialize(key, description)
  @key = key.to_s
  @description = description
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



7
8
9
# File 'lib/togls/feature.rb', line 7

def description
  @description
end

#keyObject (readonly)

Returns the value of attribute key.



7
8
9
# File 'lib/togls/feature.rb', line 7

def key
  @key
end

Instance Method Details

#idObject



14
15
16
# File 'lib/togls/feature.rb', line 14

def id
  @key
end