lib/genesis_client/devices.rb in genesis_client-0.1.3 vs lib/genesis_client/devices.rb in genesis_client-0.1.5
- old
+ new
@@ -24,11 +24,12 @@
# Create a new Device.
#
# @return [Hashie::Mash] Hash representing the device
# @param sku [String] The SKU of the new device
- def create_device(sku)
- post('/devices', sku: sku)['device']
+ # @param type [String] The type of device to create
+ def create_device(sku, type)
+ post('/devices', sku: sku, type: type)['device']
end
# Modify an existing Device.
#
# @return [Hashie::Mash] Hash representing the device