Skip to content

Instantly share code, notes, and snippets.

@raws
Created December 3, 2011 02:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raws/1425849 to your computer and use it in GitHub Desktop.
Save raws/1425849 to your computer and use it in GitHub Desktop.
def device_exists?(subdomain, input_id, device_ip)
get_devices(subdomain, input_id).each do |dev|
return true if dev.has_value?(device_ip)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment