Method: GenesisClient::Devices#devices
- Defined in:
- lib/genesis_client/devices.rb
#devices(type = nil) ⇒ Array<Hashie::Mash> Also known as: list_devices
Receive a list of all Devices.
9 10 11 |
# File 'lib/genesis_client/devices.rb', line 9 def devices(type = nil) (type.nil? ? get('/devices') : get("/devices?type=#{type}"))['devices'] end |