Class: Datasets::FuelEconomy
- Inherits:
-
Ggplot2Dataset
- Object
- Dataset
- Ggplot2Dataset
- Datasets::FuelEconomy
- Defined in:
- lib/datasets/fuel-economy.rb
Defined Under Namespace
Classes: Record
Constant Summary collapse
- COLUMN_NAME_MAPPING =
{ "displ" => "displacement", "cyl" => "n_cylinders", "trans" => "transmissions", "drv" => "drive_train", "cty" => "city_mpg", "hwy" => "highway_mpg", "fl" => "fuel", "class" => "type", }
Instance Attribute Summary
Attributes inherited from Dataset
Instance Method Summary collapse
-
#initialize ⇒ FuelEconomy
constructor
A new instance of FuelEconomy.
Methods inherited from Ggplot2Dataset
Methods inherited from Dataset
Constructor Details
#initialize ⇒ FuelEconomy
Returns a new instance of FuelEconomy.
17 18 19 20 21 22 |
# File 'lib/datasets/fuel-economy.rb', line 17 def initialize super("mpg") @metadata.id = "fuel-economy" @metadata.name = "Fuel economy" @metadata.licenses = ["CC0-1.0"] end |