Class: Fog::Baremetal::OpenStack::Drivers
- Inherits:
-
Collection
- Object
- Collection
- Fog::Baremetal::OpenStack::Drivers
- Defined in:
- lib/fog/openstack/models/baremetal/drivers.rb
Instance Method Summary collapse
- #all ⇒ Object
- #find_by_name(name) ⇒ Object (also: #get)
Instance Method Details
#all ⇒ Object
10 11 12 |
# File 'lib/fog/openstack/models/baremetal/drivers.rb', line 10 def all load(service.list_drivers.body['drivers']) end |
#find_by_name(name) ⇒ Object Also known as: get
14 15 16 |
# File 'lib/fog/openstack/models/baremetal/drivers.rb', line 14 def find_by_name(name) new(service.get_driver(name).body) end |