Class: Fog::Baremetal::OpenStack::Driver
- Inherits:
-
Model
- Object
- Model
- Fog::Baremetal::OpenStack::Driver
- Defined in:
- lib/fog/openstack/models/baremetal/driver.rb
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Driver
constructor
A new instance of Driver.
- #metadata ⇒ Object
- #properties ⇒ Object
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
#metadata ⇒ Object
23 24 25 26 |
# File 'lib/fog/openstack/models/baremetal/driver.rb', line 23 def requires :name service.get_driver(self.name).headers end |
#properties ⇒ Object
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 |