Class: Orientea::Command
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Orientea::Command
- Defined in:
- lib/orientea/command.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#done ⇒ Object
Returns the value of attribute done.
Class Method Summary collapse
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
4 5 6 |
# File 'lib/orientea/command.rb', line 4 def data @data end |
#done ⇒ Object
Returns the value of attribute done.
4 5 6 |
# File 'lib/orientea/command.rb', line 4 def done @done end |
Class Method Details
.action(&block) ⇒ Object
6 7 8 |
# File 'lib/orientea/command.rb', line 6 def self.action(&block) define_method(:action, &block) end |
.undo(&block) ⇒ Object
10 11 12 |
# File 'lib/orientea/command.rb', line 10 def self.undo(&block) define_method(:undo, &block) end |