class Brightbox::DatabaseType
Public Class Methods
Source
# File lib/brightbox-cli/database_type.rb, line 20 def self.all conn.database_types end
Source
# File lib/brightbox-cli/database_type.rb, line 28 def self.default_field_order %i[id name ram disk] end
Source
# File lib/brightbox-cli/database_type.rb, line 24 def self.get(id) conn.database_types.get id end
Source
# File lib/brightbox-cli/database_type.rb, line 3 def self.require_account?; true; end
Public Instance Methods
Source
# File lib/brightbox-cli/database_type.rb, line 32 def <=>(other) ram <=> if other.is_a? DatabaseType other.ram else other end end
Source
# File lib/brightbox-cli/database_type.rb, line 5 def attributes fog_attributes.tap do |attrs| attrs[:ram] = ram attrs[:disk] = disk end end