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.



64
65
66
67
68
69
# File 'lib/vagrant-openstack-provider/client/domain.rb', line 64

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



62
63
64
# File 'lib/vagrant-openstack-provider/client/domain.rb', line 62

def disk
  @disk
end

#ramObject

The amount of RAM in Megaoctet



57
58
59
# File 'lib/vagrant-openstack-provider/client/domain.rb', line 57

def ram
  @ram
end

#vcpusObject

The number of vCPU



52
53
54
# File 'lib/vagrant-openstack-provider/client/domain.rb', line 52

def vcpus
  @vcpus
end