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