1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/openstack/models/identity/roles.rb
2013-01-07 21:01:18 +00:00

21 lines
425 B
Ruby

require 'fog/core/collection'
require 'fog/openstack/models/identity/role'
module Fog
module Identity
class OpenStack
class Roles < Fog::Collection
model Fog::Identity::OpenStack::Role
def all
load(service.list_roles.body['roles'])
end
def get(id)
service.get_role(id)
end
end
end # class OpenStack
end # module Compute
end # module Fog