Class: Coop::User
- Defined in:
- lib/coop/api_object/user.rb
Class Method Summary collapse
-
.find(id) ⇒ Object
Public: User data for one user.
Instance Method Summary collapse
-
#all ⇒ Object
Public: List of a group’s users with all info.
Methods inherited from APIObject
Class Method Details
.find(id) ⇒ Object
Public: User data for one user
id - The user’s id
Examples
User.find(12345)
# => #<Coop::APIObject>
Returns an APIObject with user data
25 26 27 |
# File 'lib/coop/api_object/user.rb', line 25 def self.find(id) Coop.get_parsed("/users/#{id}") end |
Instance Method Details
#all ⇒ Object
11 12 13 |
# File 'lib/coop/api_object/user.rb', line 11 def all Coop.get_parsed("/group/#{self.group_id}/users") end |