Method: CTAPI::Cardterminal#close

Defined in:
lib/ctapi.rb

#closeObject

Terminates the communication with the cardterminal associated with this object and releases the assigned cardterminal number.



134
135
136
137
138
139
# File 'lib/ctapi.rb', line 134

def close
  LOCK.synchronize do
    ct_close(@number)
    cardterminals.delete @number
  end
end