Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added image_descriptionurl method

  • Loading branch information...
commit 6257f5efdd0471c4ea73f36d638030fbfabf17da 1 parent 57868f2
@ivobenedito ivobenedito authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.