Class: Brand
- Inherits:
-
Object
- Object
- Brand
- Defined in:
- lib/parking/brand.rb
Direct Known Subclasses
Parking::Cars::Abarth, Parking::Cars::Acura, Parking::Cars::Aixam, Parking::Cars::AlfaRomeo, Parking::Cars::Alpine, Parking::Cars::AstonMartin, Parking::Cars::Audi, Parking::Cars::Bentley, Parking::Cars::Bmw, Parking::Cars::Bugatti, Parking::Cars::Buick, Parking::Cars::Cadillac, Parking::Cars::Chatenet, Parking::Cars::Chevrolet, Parking::Cars::Chrysler, Parking::Cars::Citroen, Parking::Cars::Cupra, Parking::Cars::Dacia, Parking::Cars::Daewoo, Parking::Cars::Daihatsu, Parking::Cars::DeLorean, Parking::Cars::Dodge, Parking::Cars::Ds, Parking::Cars::Ferrari, Parking::Cars::Fiat, Parking::Cars::Ford, Parking::Cars::Fso, Parking::Cars::Gaz, Parking::Cars::Geely, Parking::Cars::Honda, Parking::Cars::Hummer, Parking::Cars::Hyundai, Parking::Cars::Infiniti, Parking::Cars::Intrall, Parking::Cars::Isuzu, Parking::Cars::Iveco, Parking::Cars::Jaguar, Parking::Cars::Jeep, Parking::Cars::Kia, Parking::Cars::Lada, Parking::Cars::Lamborghini, Parking::Cars::Lancia, Parking::Cars::LandRover, Parking::Cars::Landwind, Parking::Cars::Ldv, Parking::Cars::Lexus, Parking::Cars::Ligier, Parking::Cars::Lincoln, Parking::Cars::Lotus, Parking::Cars::Maserati, Parking::Cars::Maybach, Parking::Cars::Mazda, Parking::Cars::Mercedes, Parking::Cars::Mercury, Parking::Cars::Mg, Parking::Cars::Microcar, Parking::Cars::Mini, Parking::Cars::Mitsubishi, Parking::Cars::Nissan, Parking::Cars::Opel, Parking::Cars::Peugeot, Parking::Cars::Plymouth, Parking::Cars::Pontiac, Parking::Cars::Porsche, Parking::Cars::Proton, Parking::Cars::Qoros, Parking::Cars::Renault, Parking::Cars::RollsRoyce, Parking::Cars::Rover, Parking::Cars::Saab, Parking::Cars::Scion, Parking::Cars::Seat, Parking::Cars::Skoda, Parking::Cars::Smart, Parking::Cars::SsangYong, Parking::Cars::Subaru, Parking::Cars::Suzuki, Parking::Cars::Syrena, Parking::Cars::Talbot, Parking::Cars::Tata, Parking::Cars::Tesla, Parking::Cars::Toyota, Parking::Cars::Trabant, Parking::Cars::Uaz, Parking::Cars::Volkswagen, Parking::Cars::Volvo, Parking::Cars::Wartburg, Parking::Cars::Yugo, Parking::Cars::Zaz
Class Attribute Summary collapse
-
.country ⇒ Object
readonly
Returns the value of attribute country.
-
.foundation_date ⇒ Object
readonly
Returns the value of attribute foundation_date.
-
.foundation_place ⇒ Object
readonly
Returns the value of attribute foundation_place.
-
.founders ⇒ Object
readonly
Returns the value of attribute founders.
-
.models ⇒ Object
readonly
Returns the value of attribute models.
-
.name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Class Attribute Details
.country ⇒ Object (readonly)
Returns the value of attribute country.
3 4 5 |
# File 'lib/parking/brand.rb', line 3 def country @country end |
.foundation_date ⇒ Object (readonly)
Returns the value of attribute foundation_date.
3 4 5 |
# File 'lib/parking/brand.rb', line 3 def foundation_date @foundation_date end |
.foundation_place ⇒ Object (readonly)
Returns the value of attribute foundation_place.
3 4 5 |
# File 'lib/parking/brand.rb', line 3 def foundation_place @foundation_place end |
.founders ⇒ Object (readonly)
Returns the value of attribute founders.
3 4 5 |
# File 'lib/parking/brand.rb', line 3 def founders @founders end |
.models ⇒ Object (readonly)
Returns the value of attribute models.
3 4 5 |
# File 'lib/parking/brand.rb', line 3 def models @models end |
.name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/parking/brand.rb', line 3 def name @name end |
Class Method Details
.foundation ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/parking/brand.rb', line 10 def foundation { date: foundation_date, founders: founders, place: foundation_place } end |
.random ⇒ Object
18 19 20 |
# File 'lib/parking/brand.rb', line 18 def random models.sample end |