Class: VagrantPlugins::Deltacloud::Domain::HardwareProfile

Inherits:
Item
  • Object
show all
Defined in:
lib/vagrant-deltacloud-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) ⇒ HardwareProfile

Returns a new instance of HardwareProfile.



80
81
82
83
84
85
# File 'lib/vagrant-deltacloud-provider/client/domain.rb', line 80

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



78
79
80
# File 'lib/vagrant-deltacloud-provider/client/domain.rb', line 78

def disk
  @disk
end

#ramObject

The amount of RAM in Megaoctet



73
74
75
# File 'lib/vagrant-deltacloud-provider/client/domain.rb', line 73

def ram
  @ram
end

#vcpusObject

The number of vCPU



68
69
70
# File 'lib/vagrant-deltacloud-provider/client/domain.rb', line 68

def vcpus
  @vcpus
end