Class: Untappd::User
Class Method Summary collapse
-
.badges(username, options = {}) ⇒ Object
options: * offset (int, optional) - The numeric offset that you what results to start.
-
.distinct(username, options = {}) ⇒ Object
options: * sort (string, optional) - Your can sort the results using these values: date - sorts by date (default), checkin - sorted by highest checkin, global_rating - sorts by global rating, user_rating - sorted by the user’s rating * offset (int, optional) - The numeric offset that you what results to start.
-
.feed(username, options = {}) ⇒ Object
options: * max_id (int, optional) - The checkin ID that you want the results to start with * limit (int, optional) - The number of results to return, max of 50, default is 25.
-
.friend_feed(access_token, options = {}) ⇒ Object
options: * max_id (int, optional) - The checkin ID that you want the results to start with * limit (int, optional) - The number of results to return, max of 50, default is 25.
-
.friends(username, options = {}) ⇒ Object
options: * offset (int, optional) - The numeric offset that you what results to start limit (optional) - The number of records that you will return (max 50).
- .info(username) ⇒ Object
-
.wish_list(username, options = {}) ⇒ Object
options: * offset (int, optional) - The numeric offset that you what results to start.
Methods inherited from Base
auth_options, response_to_mash
Class Method Details
.badges(username, options = {}) ⇒ Object
options:
-
offset (int, optional) - The numeric offset that you what results to start
17 18 19 20 |
# File 'lib/untappd/user.rb', line 17 def self.badges(username, ={}) .merge!() response_to_mash get("/user/badges/#{username}", :query => ) end |
.distinct(username, options = {}) ⇒ Object
options:
-
sort (string, optional) - Your can sort the results using these values:
date - sorts by date (default), checkin - sorted by highest checkin, global_rating - sorts by global rating, user_rating - sorted by the user’s rating
-
offset (int, optional) - The numeric offset that you what results to start
42 43 44 45 |
# File 'lib/untappd/user.rb', line 42 def self.distinct(username, ={}) .merge!() response_to_mash get("/user/beers/#{username}", :query => ) end |
.feed(username, options = {}) ⇒ Object
options:
-
max_id (int, optional) - The checkin ID that you want the results to start with
-
limit (int, optional) - The number of results to return, max of 50, default is 25
6 7 8 9 |
# File 'lib/untappd/user.rb', line 6 def self.feed(username, ={}) .merge!() response_to_mash get("/user/checkins/#{username}", :query => ) end |
.friend_feed(access_token, options = {}) ⇒ Object
options:
-
max_id (int, optional) - The checkin ID that you want the results to start with
-
limit (int, optional) - The number of results to return, max of 50, default is 25
50 51 52 53 |
# File 'lib/untappd/user.rb', line 50 def self.friend_feed(access_token, ={}) .merge!({:access_token => access_token}) response_to_mash get("/checkin/recent", :query => ) end |
.friends(username, options = {}) ⇒ Object
options:
-
offset (int, optional) - The numeric offset that you what results to start
limit (optional) - The number of records that you will return (max 50)
25 26 27 28 |
# File 'lib/untappd/user.rb', line 25 def self.friends(username, ={}) .merge!() response_to_mash get("/user/friends/#{username}", :query => ) end |
.info(username) ⇒ Object
11 12 13 |
# File 'lib/untappd/user.rb', line 11 def self.info(username) response_to_mash get("/user/info/#{username}", :query => ) end |
.wish_list(username, options = {}) ⇒ Object
options:
-
offset (int, optional) - The numeric offset that you what results to start
32 33 34 35 |
# File 'lib/untappd/user.rb', line 32 def self.wish_list(username, ={}) .merge!() response_to_mash get("/user/wishlist/#{username}", :query => ) end |