class Fog::Compute::Packet::Projects

Projects Collection

Public Instance Methods

all(params = {}) click to toggle source
# 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) click to toggle source
# File lib/fog/compute/packet/models/projects.rb, line 15
def get(id)
  response = service.get_project(id)
  new(response.body)
end