Permalink
Browse files

added image_descriptionurl method

  • Loading branch information...
1 parent 57868f2 commit 6257f5efdd0471c4ea73f36d638030fbfabf17da @ivobenedito ivobenedito committed Jun 21, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/wikipedia/page.rb
View
4 lib/wikipedia/page.rb
@@ -57,6 +57,10 @@ def image_urls
end
end
+ def image_descriptionurl
+ page['imageinfo'].first['descriptionurl'] if page['imageinfo']
+ end
+
def raw_data
@data
end

0 comments on commit 6257f5e

Please sign in to comment.