Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

added image_descriptionurl method #6

Merged
merged 1 commit into from

2 participants

@ivobenedito

Just implemented a method similar to image_url for calling the descriptionurl of an image.
This "description_url" page at wikipedia is where all the image metadata and info is listed.

@kenpratt kenpratt merged commit 1a88f61 into from
@kenpratt
Owner

Thanks! Merged and published new gem with version 1.1.1.

@ivobenedito ivobenedito deleted the branch
@ivobenedito

You're welcome ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 21, 2013
  1. @ivobenedito
This page is out of date. Refresh to see the latest.
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
Something went wrong with that request. Please try again.