Sha256: 06fa7f00fe4b1fbaee2bcd8da6acc26a22a8366314902968cd31425ac65a4a8e

Contents?: true

Size: 821 Bytes

Versions: 3

Compression:

Stored size: 821 Bytes

Contents

require 'earth/fuel'
require 'earth/locality'
class RailCompany < ActiveRecord::Base
  set_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

3 entries across 3 versions & 1 rubygems

Version Path
earth-0.11.10 lib/earth/rail/rail_company.rb
earth-0.11.9 lib/earth/rail/rail_company.rb
earth-0.11.8 lib/earth/rail/rail_company.rb