Class: Fog::Compute::Packet::Users
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::Packet::Users
- Defined in:
- lib/fog/compute/packet/models/users.rb
Overview
Projects Collection
Instance Method Summary collapse
Instance Method Details
#all(params = {}) ⇒ Object
10 11 12 13 |
# File 'lib/fog/compute/packet/models/users.rb', line 10 def all(params = {}) response = service.list_users(params) load(response.body["users"]) end |
#get(id = "") ⇒ Object
15 16 17 18 |
# File 'lib/fog/compute/packet/models/users.rb', line 15 def get(id = "") response = service.get_user(id) new(response.body) end |