Sha256: b51ba0c51676861eace9d936b290d9dc39113992f5f457c822df3818a1e8dc1d
Contents?: true
Size: 698 Bytes
Versions: 43
Compression:
Stored size: 698 Bytes
Contents
module Brightbox class Type < Api def self.require_account?; true; end def attributes o = fog_model.attributes o[:ram] = ram o[:disk] = disk o end def ram fog_model.ram.to_i end def disk fog_model.disk.to_i end def to_row attributes end def render_cell fog_model.handle end def self.all conn.flavors end def self.get(id) conn.flavors.get id end def self.default_field_order [:id, :name, :handle, :ram, :disk, :cores] end def <=>(other) if other.is_a? Type ram <=> other.ram else ram <=> other end end end end
Version data entries
43 entries across 43 versions & 1 rubygems