Class: RemoveKey
- Inherits:
-
Struct
- Object
- Struct
- RemoveKey
- Defined in:
- lib/engine/app/lib/commands/remove_key.rb
Instance Attribute Summary collapse
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#key ⇒ Object
Returns the value of attribute key.
Instance Method Summary collapse
Instance Attribute Details
#backend ⇒ Object
Returns the value of attribute backend
1 2 3 |
# File 'lib/engine/app/lib/commands/remove_key.rb', line 1 def backend @backend end |
#key ⇒ Object
Returns the value of attribute key
1 2 3 |
# File 'lib/engine/app/lib/commands/remove_key.rb', line 1 def key @key end |
Instance Method Details
#execute ⇒ Object
2 3 4 5 6 |
# File 'lib/engine/app/lib/commands/remove_key.rb', line 2 def execute Authorization.(:remove_content) do backend.del(key) end end |