Class: Alula::DealerDeviceStatsProc

Inherits:
RpcResource show all
Defined in:
lib/alula/procedures/dealer_device_stats_proc.rb

Defined Under Namespace

Classes: Response

Class Method Summary collapse

Methods inherited from RpcResource

ok?, request, wrap_payload

Class Method Details

.call(dealer_id:) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/alula/procedures/dealer_device_stats_proc.rb', line 7

def self.call(dealer_id:)
  request( 
    http_method: :post,
    path: '/rpc/v1/dealers/devices/stats/get',
    payload: { dealerId: dealer_id },
    handler: Response
  )
end