Class: Plug::Resources::Feature
- Inherits:
-
ActiveResource::Base
- Object
- ActiveResource::Base
- Plug::Resources::Feature
- Defined in:
- app/models/plug/resources/feature.rb
Instance Method Summary collapse
Instance Method Details
#disabled? ⇒ Boolean
10 11 12 |
# File 'app/models/plug/resources/feature.rb', line 10 def disabled? state == 'disabled' end |
#enabled? ⇒ Boolean
6 7 8 |
# File 'app/models/plug/resources/feature.rb', line 6 def enabled? state == 'enabled' end |