Project

parking

0.0
No commit activity in last 3 years
No release in over 3 years
Parking allows you to generate information about brands and models of cars and motorcycles.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Parking

Parking allows you to generate information about brands and models of cars and motorcycles

Installation

Add this line to your application's Gemfile:

gem 'parking'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install parking

Usage

require 'parking'

Parking::Cars.brands                        # => ['Abarth', 'Acura', 'Aixam', ...], 
Parking::Cars.random                        # => 'Renault Megane'
Parking::Cars::Volkswagen.random            # => 'Passat'

Parking::Cars::Audi.name                    # => 'Audi'
Parking::Cars::Bmw.country                  # => 'Germany'
Parking::Cars::Dacia.foundation_date        # => '1903-06-16'
Parking::Cars::Ferrari.foundation_place     # => Maranello, Italy'
Parking::Cars::Abarth.founders              # => ['Carlo Abarth', 'Armando Scagliarini']
Parking::Cars::Lamborghini.models           # => ['Aventador', 'Countach', 'Diablo', ...]

Parking::Cars.countries                     # => ['Italy', 'Germany', ...]
Parking::Cars.from_germany                  # => ['Audi', 'BMW', ...]
Parking::Cars.from_great_britain            # => ['Aston Martin', 'Bentley', ...]