Class: Action
- Inherits:
-
Object
show all
- Defined in:
- lib/MINT-core/mapping/action/action.rb
Instance Method Summary
collapse
Constructor Details
#initialize ⇒ Action
Returns a new instance of Action.
3
4
5
6
7
|
# File 'lib/MINT-core/mapping/action/action.rb', line 3
def initialize
@result = false
end
|
Instance Method Details
#finished_callback(&block) ⇒ Object
This callback is used to inform that the action has been successfully finished
27
28
29
|
# File 'lib/MINT-core/mapping/action/action.rb', line 27
def finished_callback (&block)
block.call(id,@result)
end
|
#id ⇒ Object
9
10
11
|
# File 'lib/MINT-core/mapping/action/action.rb', line 9
def id
@action[:id]
end
|
#identifier ⇒ Object
13
14
15
|
# File 'lib/MINT-core/mapping/action/action.rb', line 13
def identifier
end
|
#initiated_callback(cb) ⇒ Object
17
18
19
|
# File 'lib/MINT-core/mapping/action/action.rb', line 17
def initiated_callback(cb)
end
|
#start(observation_results) ⇒ Object
21
22
23
|
# File 'lib/MINT-core/mapping/action/action.rb', line 21
def start (observation_results)
self
end
|