Module: ProductHunt::API::Users

Included in:
ProductHunt::API
Defined in:
lib/product_hunt/api/users.rb

Constant Summary collapse

PATH =
"/users"

Instance Method Summary collapse

Instance Method Details

#user(id, options = {}) ⇒ Object



7
8
9
10
# File 'lib/product_hunt/api/users.rb', line 7

def user(id, options = {})
  user = fetch(PATH + "/#{id}", options)["user"]
  User.new(user, self)
end