ruby cloud detection methods