Sha256: 92fe663eb77e020b5055e00e54272cb1ffdbf5206f439a4767263d9528b8c9ab

Contents?: true

Size: 324 Bytes

Versions: 10

Compression:

Stored size: 324 Bytes

Contents

class EgridCountry < ActiveRecord::Base
  set_primary_key :name
  
  class << self
    def us
      find_by_name 'US'
    end
  end
  
  col :name
  col :generation, :type => :float
  col :generation_units
  col :imports, :type => :float
  col :imports_units
  col :consumption, :type => :float
  col :consumption_units
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
earth-0.11.10 lib/earth/locality/egrid_country.rb
earth-0.11.9 lib/earth/locality/egrid_country.rb
earth-0.11.8 lib/earth/locality/egrid_country.rb
earth-0.11.7 lib/earth/locality/egrid_country.rb
earth-0.11.6 lib/earth/locality/egrid_country.rb
earth-0.11.5 lib/earth/locality/egrid_country.rb
earth-0.11.4 lib/earth/locality/egrid_country.rb
earth-0.11.3 lib/earth/locality/egrid_country.rb
earth-0.11.2 lib/earth/locality/egrid_country.rb
earth-0.11.1 lib/earth/locality/egrid_country.rb