Class: Guh::StateType
Overview
This class wraps everything related to the state types of a device class.
Class Method Summary collapse
Methods inherited from Base
configure, get, guh_ip_address, guh_ip_address=, guh_port, guh_port=, introspect, version
Class Method Details
.all(device_class_id) ⇒ Object
7 8 9 10 11 12 13 14 |
# 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 |