Class: Devrant::Users
- Inherits:
-
Object
- Object
- Devrant::Users
- Includes:
- Devrant, HTTParty
- Defined in:
- lib/devrant/users.rb
Constant Summary
Constants included from Devrant
Instance Method Summary collapse
Methods included from Devrant
Instance Method Details
#get_user(id) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/devrant/users.rb', line 6 def get_user(id) user = structuralize(self.class.get("/users/#{id}")).profile return user unless user.nil? raise ArgumentError.new("No user found for id #{id}") end |