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.



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

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



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

def disk
  @disk
end

#ramObject

The amount of RAM in Megaoctet



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

def ram
  @ram
end

#vcpusObject

The number of vCPU



48
49
50
# File 'lib/vagrant-openstack-provider/client/domain.rb', line 48

def vcpus
  @vcpus
end