Module: Foursquared::Badges

Included in:
Client
Defined in:
lib/foursquared/badges.rb

Overview

Badges module

Instance Method Summary collapse

Instance Method Details

#badge(badge_id) ⇒ Foursquared::Response::Badge

Badge details

Parameters:

  • badge_id (String)

    required, The id of the badge

Returns:



7
8
9
10
# File 'lib/foursquared/badges.rb', line 7

def badge badge_id
  response = get("/badges/#{badge_id}")["response"]
  Foursquared::Response::Badge.new(self,response["badge"])
end