Sha256: 8ba0e4b0bdb2d04babdbcd3ad50991734cae81df8cd7005c5dcea380a89f095b
Contents?: true
Size: 664 Bytes
Versions: 3
Compression:
Stored size: 664 Bytes
Contents
require 'earth/locality' class ComputationCarrier < ActiveRecord::Base set_primary_key :name falls_back_on :name => 'fallback', :power_usage_effectiveness => lambda { ComputationCarrier.maximum('power_usage_effectiveness') } col :name col :power_usage_effectiveness, :type => :float # verify "Power usage effectiveness should be one or more" do # ComputationCarrier.all.each do |carrier| # unless carrier.power_usage_effectiveness >= 1.0 # raise "Invalid power usage effectiveness for ComputationCarrier #{carrier.name}: #{carrier.power_usage_effectiveness} (should be >= 1.0)" # end # end # end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
earth-0.11.10 | lib/earth/computation/computation_carrier.rb |
earth-0.11.9 | lib/earth/computation/computation_carrier.rb |
earth-0.11.8 | lib/earth/computation/computation_carrier.rb |