Sha256: de27dcfb574cad305b656703bd6b00dad91e18b6f3be0ed4dc376f8409340117
Contents?: true
Size: 517 Bytes
Versions: 36
Compression:
Stored size: 517 Bytes
Contents
module Yao::Resources class Flavor < Base friendly_attributes :name, :vcpus, :disk, :swap map_attribute_to_attribute "os-flavor-access:is_public" => :public? map_attribute_to_attribute "OS-FLV-DISABLED:disabled" => :disabled? def ram(unit='M') case unit when 'M' self["ram"] when 'G' self["ram"] / 1024.0 end end alias memory ram self.service = "compute" self.resource_name = "flavor" self.resources_name = "flavors" end end
Version data entries
36 entries across 36 versions & 1 rubygems