Class: Fog::Compute::Linode::Flavor

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/linode/models/compute/flavor.rb

Instance Method Summary collapse

Instance Method Details

#bitsObject



36
37
38
# File 'lib/fog/linode/models/compute/flavor.rb', line 36

def bits
  0 # these are determined by images you select not the hardware
end

#coresObject



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/fog/linode/models/compute/flavor.rb', line 13

def cores
  case id
  when 1
  	2
  when 3
  	4
  when 5
  	6
  when 6
  	8
  when 7
  	12
  when 8
  	16
  when 9
  	20
  when 11
  	20
  else
  	0
  end
end