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

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

Instance Method Summary collapse

Instance Method Details

#allObject



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