Class: Going::Shift

Inherits:
Operation show all
Defined in:
lib/going/operation/shift.rb

Instance Attribute Summary

Attributes inherited from Operation

#message, #select_statement

Instance Method Summary collapse

Methods inherited from Operation

#incomplete?, #initialize, #signal, #wait

Methods included from BooleanAttrReader

#battr_reader

Constructor Details

This class inherits a constructor from Going::Operation

Instance Method Details

#closeObject



16
17
18
19
# File 'lib/going/operation/shift.rb', line 16

def close
  super
  notify_select_statement
end

#complete(push) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/going/operation/shift.rb', line 3

def complete(push)
  select_statement.once do
    push.select_statement.once do
      self.message = push.message

      super()
      push.complete
      notify_select_statement
      true
    end
  end
end