class VerseOfTheDay::Verse

Public Class Methods

retrieve() click to toggle source
# File lib/verse_of_the_day.rb, line 7
def self.retrieve
  page = HTTPClient.get('http://www.biblestudytools.com/bible-verse-of-the-day/')
  noko = Nokogiri::HTML(page.body)
  verse_div = noko.xpath('//div[@class="VerseOfTheDay"]/div[@class="VerseText"]')
  verse_div.text
end