Class: Plug::Resources::Feature

Inherits:
ActiveResource::Base
  • Object
show all
Defined in:
app/models/plug/resources/feature.rb

Instance Method Summary collapse

Instance Method Details

#disabled?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'app/models/plug/resources/feature.rb', line 10

def disabled?
  state == 'disabled'
end

#enabled?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'app/models/plug/resources/feature.rb', line 6

def enabled?
  state == 'enabled'
end