Sha256: 2484939691c1fdb756706c81546da770d97db7d40aa5fefc7cb5624f13045eee

Contents?: true

Size: 328 Bytes

Versions: 11

Compression:

Stored size: 328 Bytes

Contents

class EgridCountry < ActiveRecord::Base
  self.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

11 entries across 11 versions & 1 rubygems

Version Path
earth-0.12.0 lib/earth/locality/egrid_country.rb
earth-0.11.20 lib/earth/locality/egrid_country.rb
earth-0.11.19 lib/earth/locality/egrid_country.rb
earth-0.11.18 lib/earth/locality/egrid_country.rb
earth-0.11.17 lib/earth/locality/egrid_country.rb
earth-0.11.16 lib/earth/locality/egrid_country.rb
earth-0.11.15 lib/earth/locality/egrid_country.rb
earth-0.11.14 lib/earth/locality/egrid_country.rb
earth-0.11.13 lib/earth/locality/egrid_country.rb
earth-0.11.12 lib/earth/locality/egrid_country.rb
earth-0.11.11 lib/earth/locality/egrid_country.rb