Skip to content

Commit 0ce437d

Browse files
committed
Get address from ping
1 parent 328cda3 commit 0ce437d

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

app/models/terminal.rb

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
class Terminal
1111
include Redis::Objects
1212

13+
value :address, :global => true
1314
value :actual_state, :global => true
1415
value :modified_at, :global => true, :marshal => true
1516
value :payment_in_progress, :global => true

app/workers/ping_worker.rb

+2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ def perform
4646
#
4747
# PROFILE
4848
#
49+
Terminal.address = response[:address]
50+
4951
unless Terminal.modified_at == response[:profile][:modified_at]
5052
Terminal.support_phone = response[:profile][:support_phone]
5153
Terminal.modified_at = response[:profile][:modified_at]

lib/smartkiosk/client/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
module Smartkiosk
44
class Client < Sinatra::Base
5-
VERSION = '0.1.16'
5+
VERSION = '0.1.17'
66
end
77
end

0 commit comments

Comments
 (0)