Class: Fog::Compute::XenServer::Roles
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::XenServer::Roles
- Defined in:
- lib/fog/xenserver/models/compute/roles.rb
Instance Method Summary collapse
Instance Method Details
#all(options = {}) ⇒ Object
10 11 12 13 |
# File 'lib/fog/xenserver/models/compute/roles.rb', line 10 def all(={}) data = service.get_records 'role' load(data) end |
#get(role_ref) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/fog/xenserver/models/compute/roles.rb', line 15 def get( role_ref ) if role_ref && role = service.get_record( role_ref, 'role' ) new(role) else nil end end |