Permalink
Browse files

Merge pull request #6 from ivobenedito/add-image-descriptionurl

added image_descriptionurl method
  • Loading branch information...
2 parents 57868f2 + 6257f5e commit 1a88f6144f1bf4b78041e9873d2d8d4e5e9a5d91 @kenpratt committed Jun 22, 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 1a88f61

Please sign in to comment.