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