Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added a method to get a venue's short_url

  • Loading branch information...
commit 87fe3e42af4de0731ae890571d88e20387f6d8ad 1 parent bf4db8e
@pierrevalade pierrevalade authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/foursquare/venue.rb
View
4 lib/foursquare/venue.rb
@@ -62,6 +62,10 @@ def icon
primary_category ? primary_category["icon"] : "https://foursquare.com/img/categories/none.png"
end
+ def short_url
+ @json["shortUrl"]
+ end
+
def photos_count
@json["photos"]["count"]
end
Please sign in to comment.
Something went wrong with that request. Please try again.