Permalink
Browse files

Merge pull request #1 from laurentk/master

Added ShortUrl
  • Loading branch information...
2 parents 111c329 + fa4a776 commit b1467ad0bee9824e391ed918fd70a28c7580cde9 @pierrevalade committed May 25, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 vendor/plugins/quimby/lib/foursquare/venue.rb
@@ -57,6 +57,12 @@ def icon
primary_category ? primary_category["icon"] : "https://foursquare.com/img/categories/none.png"
end
+ # returns the venue short url
+ # https://developer.foursquare.com/docs/venues/venues.html
+ def short_url
+ @json["shortUrl"]
+ end
+
def photos_count
@json["photos"]["count"]
end

0 comments on commit b1467ad

Please sign in to comment.