Module: FogExtensions::AzureRM::DataDisk
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/fog_extensions/azurerm/data_disk.rb
Class Method Summary collapse
Class Method Details
.prepended(base) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'app/models/concerns/fog_extensions/azurerm/data_disk.rb', line 6 def self.prepended base base.instance_eval do def parse(disk) hash = {} hash['name'] = disk.name hash['disk_size_gb'] = disk.disk_size_gb hash['lun'] = disk.lun unless disk.vhd.nil? hash['vhd_uri'] = disk.vhd.uri end hash['caching'] = disk.caching unless disk.caching.nil? hash['create_option'] = disk.create_option hash end end end |