Sha256: 29b106c3687a0253fc5a6457eb5e62b3d8e22b6bcf52e491ca184d032320260c

Contents?: true

Size: 825 Bytes

Versions: 10

Compression:

Stored size: 825 Bytes

Contents

require 'earth/fuel'
require 'earth/locality'
class RailCompany < ActiveRecord::Base
  self.primary_key = "name"
  
  belongs_to :country, :foreign_key => 'country_iso_3166_code'
  
  col :name
  col :country_iso_3166_code
  col :duns_number
  col :passengers, :type => :float
  col :passenger_distance, :type => :float
  col :passenger_distance_units
  col :trip_distance, :type => :float
  col :trip_distance_units
  col :train_distance, :type => :float
  col :train_distance_units
  col :train_time, :type => :float
  col :train_time_units
  col :speed, :type => :float
  col :speed_units
  col :electricity_intensity, :type => :float
  col :electricity_intensity_units
  col :diesel_intensity, :type => :float
  col :diesel_intensity_units
  col :co2_emission_factor, :type => :float
  col :co2_emission_factor_units
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
earth-0.11.20 lib/earth/rail/rail_company.rb
earth-0.11.19 lib/earth/rail/rail_company.rb
earth-0.11.18 lib/earth/rail/rail_company.rb
earth-0.11.17 lib/earth/rail/rail_company.rb
earth-0.11.16 lib/earth/rail/rail_company.rb
earth-0.11.15 lib/earth/rail/rail_company.rb
earth-0.11.14 lib/earth/rail/rail_company.rb
earth-0.11.13 lib/earth/rail/rail_company.rb
earth-0.11.12 lib/earth/rail/rail_company.rb
earth-0.11.11 lib/earth/rail/rail_company.rb