class Guh::StateType

This class wraps everything related to the state types of a device class.

Public Class Methods

all(device_class_id) click to toggle source
# File lib/guh/state_type.rb, line 7
def self.all(device_class_id)
  response = get({
    id: generate_request_id,
    method: 'Devices.GetStateTypes',
    params: { deviceClassId: device_class_id }
  })
  return response['stateTypes']
end