Class: Fog::OpenStack::Baremetal::Drivers
- Inherits:
-
Collection
- Object
- Collection
- Collection
- Fog::OpenStack::Baremetal::Drivers
show all
- Defined in:
- lib/fog/openstack/baremetal/models/drivers.rb
Instance Attribute Summary
Attributes inherited from Collection
#response
Instance Method Summary
collapse
Methods inherited from Collection
#destroy, #find_by_id, #load_response, #summary
Instance Method Details
#all(options = {}) ⇒ Object
10
11
12
|
# File 'lib/fog/openstack/baremetal/models/drivers.rb', line 10
def all(options = {})
load_response(service.list_drivers(options), 'drivers')
end
|
#find_by_name(name) ⇒ Object
Also known as:
get
14
15
16
|
# File 'lib/fog/openstack/baremetal/models/drivers.rb', line 14
def find_by_name(name)
new(service.get_driver(name).body)
end
|