Skip to content

Commit

Permalink
Merge pull request #6 from ivobenedito/add-image-descriptionurl
Browse files Browse the repository at this point in the history
added image_descriptionurl method
  • Loading branch information
kenpratt committed Jun 22, 2013
2 parents 57868f2 + 6257f5e commit 1a88f61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/wikipedia/page.rb
Expand Up @@ -57,6 +57,10 @@ def image_urls
end end
end end


def image_descriptionurl
page['imageinfo'].first['descriptionurl'] if page['imageinfo']
end

def raw_data def raw_data
@data @data
end end
Expand Down

0 comments on commit 1a88f61

Please sign in to comment.