Class: Alula::DeviceRatePlanGetProc

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

Defined Under Namespace

Classes: Response

Class Method Summary collapse

Methods inherited from RpcResource

ok?, request, wrap_payload

Class Method Details

.call(device_id:) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/alula/procedures/device_rateplan_get_proc.rb', line 8

def self.call(device_id:)
  payload = {
    deviceId: device_id
  }

  request(
    http_method: :post,
    path: '/rpc/v1/devices/rateplan/get',
    payload: payload,
    handler: Response
  )
end