Sha256: 1482fd37184e801036c7f3c22b8abe5781c027ea150d7843df9d6136accb65dc
Contents?: true
Size: 560 Bytes
Versions: 15
Compression:
Stored size: 560 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" self.resources_detail_available = true end end
Version data entries
15 entries across 15 versions & 1 rubygems