Class: Fog::Baremetal::OpenStack::Driver

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

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ Driver

Returns a new instance of Driver.



12
13
14
15
16
# File 'lib/fog/openstack/models/baremetal/driver.rb', line 12

def initialize(attributes)
  # Old 'connection' is renamed as service and should be used instead
  prepare_service_value(attributes)
  super
end

Instance Method Details

#metadataObject



23
24
25
26
# File 'lib/fog/openstack/models/baremetal/driver.rb', line 23

def 
  requires :name
  service.get_driver(self.name).headers
end

#propertiesObject



18
19
20
21
# File 'lib/fog/openstack/models/baremetal/driver.rb', line 18

def properties
  requires :name
  service.get_driver_properties(self.name).body
end