Sha256: 8356682d44a75877e8f8621963faf5e4335577e79a47dfddccf1e324c3bc2696
Contents?: true
Size: 656 Bytes
Versions: 3
Compression:
Stored size: 656 Bytes
Contents
module Brightbox class DatabaseType < 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 self.all conn.database_types end def self.get(id) conn.database_types.get id end def self.default_field_order %i[id name ram disk] end def <=>(other) ram <=> if other.is_a? DatabaseType 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/database_type.rb |
brightbox-cli-5.0.0.rc2 | lib/brightbox-cli/database_type.rb |
brightbox-cli-5.0.0.rc1 | lib/brightbox-cli/database_type.rb |