Class: Action

Inherits:
Object
  • Object
show all
Defined in:
lib/MINT-core/mapping/action/action.rb

Direct Known Subclasses

BackendAction, BindAction, EventAction

Instance Method Summary collapse

Constructor Details

#initializeAction

Returns a new instance of Action.



3
4
5
6
7
# File 'lib/MINT-core/mapping/action/action.rb', line 3

def initialize

  # sucecss of action used by finisheh callback
  @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

#idObject



9
10
11
# File 'lib/MINT-core/mapping/action/action.rb', line 9

def id
  @action[:id]
end

#identifierObject



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