class WikipediaRestClient::FeaturedArticle
@author Balaji
Public Instance Methods
featured_article(json)
click to toggle source
Today's Featured Article from Wikipedia page.
# File lib/wikipedia_rest_client/featured_article.rb, line 7 def featured_article(json) @data = json if @data["tfa"] then @data["tfa"] end end
image_of_the_day()
click to toggle source
Image of the day content from Wikipedia page.
# File lib/wikipedia_rest_client/featured_article.rb, line 16 def image_of_the_day @data["image"]["image"]["source"] end