lib/genesis_client/devices.rb in genesis_client-0.1.0 vs lib/genesis_client/devices.rb in genesis_client-0.1.1
- old
+ new
@@ -38,7 +38,17 @@
# @param message [String] Log message
def create_device_log(sku, message)
data = { message: message }
post("/devices/#{sku}/logs", data)['log']
end
+
+ # Create a new Log for the current Remote Action for a Device.
+ #
+ # @return [Hashie::Mash] Hash representing the log
+ # @param sku [Integer] The SKU of the device
+ # @param message [String] Log message
+ def create_device_current_remote_action_log(sku, message)
+ data = { current_action: 'true', log: { message: message } }
+ post("/devices/#{sku}/logs", data)['log']
+ end
end
end