class Dilbert::DilbertService
Public Instance Methods
curl_command()
click to toggle source
# File lib/dilbert/dilbert_service.rb, line 7 def curl_command `curl http://dilbert.com/fast | grep img | cut -d'"' -f2 | tail -n1` end
fetch_latest()
click to toggle source
# File lib/dilbert/dilbert_service.rb, line 3 def fetch_latest "http://www.dilbert.com#{curl_command.chomp}" end