Class: Fog::Baremetal::OpenStack::Drivers

Inherits:
OpenStack::Collection show all
Defined in:
lib/fog/baremetal/openstack/models/drivers.rb

Instance Attribute Summary

Attributes inherited from OpenStack::Collection

#response

Instance Method Summary collapse

Methods inherited from OpenStack::Collection

#destroy, #find_by_id, #load_response, #summary

Instance Method Details

#all(options = {}) ⇒ Object



10
11
12
# File 'lib/fog/baremetal/openstack/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/baremetal/openstack/models/drivers.rb', line 14

def find_by_name(name)
  new(service.get_driver(name).body)
end