class Brightbox::Type
Public Class Methods
Source
# File lib/brightbox-cli/types.rb, line 32 def self.default_field_order %i[id name handle ram disk cores] end
Source
# File lib/brightbox-cli/types.rb, line 3 def self.require_account?; true; end
Public Instance Methods
Source
# File lib/brightbox-cli/types.rb, line 36 def <=>(other) ram <=> if other.is_a? Type other.ram else other end end
Source
# File lib/brightbox-cli/types.rb, line 5 def attributes fog_attributes.tap do |attrs| attrs[:ram] = ram attrs[:disk] = disk end end
Source
# File lib/brightbox-cli/types.rb, line 20 def render_cell fog_model.handle end