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