Sha256: 63a29fc041dda11625096baa915c53fb00cf2af4d59c8197b79ca8c317e12d73

Contents?: true

Size: 438 Bytes

Versions: 1

Compression:

Stored size: 438 Bytes

Contents

require 'fog/core/model'

module Fog
  module Linode
    class Compute
      class Flavor < Fog::Model
        identity :id
        attribute :disk
        attribute :name
        attribute :ram
        attribute :price
        
        def cores
          4 # linode always has 4 cores
        end
        
        def bits
          0 # these are determined by images you select not the hardware
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fog-0.8.2 lib/fog/compute/models/linode/flavor.rb