Class: Rancher::Api::Machine
- Inherits:
-
Object
- Object
- Rancher::Api::Machine
- Includes:
- Her::Model
- Defined in:
- lib/rancher/api/models/machine.rb,
lib/rancher/api/models/machine/driver_config.rb
Defined Under Namespace
Classes: DriverConfig
Constant Summary collapse
- DIGITAL_OCEAN =
'digitalocean'
Instance Method Summary collapse
Instance Method Details
#driver_config ⇒ Object
18 19 20 21 22 23 |
# File 'lib/rancher/api/models/machine.rb', line 18 def driver_config case driver when DIGITAL_OCEAN DriverConfig.new(attributes["#{DIGITAL_OCEAN}Config"]) end end |
#driver_config=(dc) ⇒ Object
25 26 27 28 29 30 |
# File 'lib/rancher/api/models/machine.rb', line 25 def driver_config=(dc) case driver when DIGITAL_OCEAN attributes["#{DIGITAL_OCEAN}Config"] = dc.attributes end end |