Class: VagrantPlugins::Openstack::Domain::Flavor

Inherits:
Item
  • Object
show all
Defined in:
lib/vagrant-openstack-provider/client/domain.rb

Instance Attribute Summary collapse

Attributes inherited from Item

#id, #name

Instance Method Summary collapse

Methods inherited from Item

#==

Constructor Details

#initialize(id, name, vcpus, ram, disk) ⇒ Flavor

Returns a new instance of Flavor.



40
41
42
43
44
45
# File 'lib/vagrant-openstack-provider/client/domain.rb', line 40

def initialize(id, name, vcpus, ram, disk)
  @vcpus = vcpus
  @ram  = ram
  @disk = disk
  super(id, name)
end

Instance Attribute Details

#diskObject

The size of root disk in Gigaoctet



38
39
40
# File 'lib/vagrant-openstack-provider/client/domain.rb', line 38

def disk
  @disk
end

#ramObject

The amount of RAM in Megaoctet



33
34
35
# File 'lib/vagrant-openstack-provider/client/domain.rb', line 33

def ram
  @ram
end

#vcpusObject

THe number of vCPU



28
29
30
# File 'lib/vagrant-openstack-provider/client/domain.rb', line 28

def vcpus
  @vcpus
end