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



38
39
40
# File 'lib/fog/linode/models/compute/flavor.rb', line 38

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
35
36
# File 'lib/fog/linode/models/compute/flavor.rb', line 13

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