Class: CreditDevice::Status

Inherits:
Object
  • Object
show all
Defined in:
lib/credit_device/status.rb

Class Method Summary collapse

Class Method Details

.check_statusObject



3
4
5
6
7
8
# File 'lib/credit_device/status.rb', line 3

def self.check_status
  CreditDevice::Client.new(:get, 'status').request['ok']
rescue RestClient::ExceptionWithResponse => _e
  puts _e
  false
end