Sha256: 416c8f1fe71e6117c401aca8929038a8373294b2effc454487d0c342a93d6f12
Contents?: true
Size: 691 Bytes
Versions: 3
Compression:
Stored size: 691 Bytes
Contents
module Brightbox class Type < Api def self.require_account?; true; end def attributes fog_attributes.tap do |attrs| attrs[:ram] = ram attrs[:disk] = disk end end def ram fog_model.ram.to_i end def disk fog_model.disk.to_i 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 %i[id name handle ram disk cores] end def <=>(other) ram <=> if other.is_a? Type other.ram else other end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
brightbox-cli-5.0.0 | lib/brightbox-cli/types.rb |
brightbox-cli-5.0.0.rc2 | lib/brightbox-cli/types.rb |
brightbox-cli-5.0.0.rc1 | lib/brightbox-cli/types.rb |