Module: Zklib::ConnectionManagement
- Included in:
- Zklib
- Defined in:
- lib/zklib/connection_management.rb
Instance Method Summary collapse
-
#connect ⇒ Object
Connect to attendance machine.
-
#disconnect ⇒ Object
Disconnect from attendance machine.
Instance Method Details
#connect ⇒ Object
Connect to attendance machine
4 5 6 7 8 9 10 11 |
# File 'lib/zklib/connection_management.rb', line 4 def connect execute_cmd( command: CMD_CONNECT, command_string: '' ) do |opts| check_valid(data: opts[:data]) end end |
#disconnect ⇒ Object
Disconnect from attendance machine
14 15 16 17 18 19 20 21 |
# File 'lib/zklib/connection_management.rb', line 14 def disconnect execute_cmd( command: CMD_EXIT, command_string: '' ) do |opts| check_valid(data: opts[:data]) end end |