Class: Brand

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Class Attribute Details

.countryObject (readonly)

Returns the value of attribute country.



3
4
5
# File 'lib/parking/brand.rb', line 3

def country
  @country
end

.foundation_dateObject (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_placeObject (readonly)

Returns the value of attribute foundation_place.



3
4
5
# File 'lib/parking/brand.rb', line 3

def foundation_place
  @foundation_place
end

.foundersObject (readonly)

Returns the value of attribute founders.



3
4
5
# File 'lib/parking/brand.rb', line 3

def founders
  @founders
end

.modelsObject (readonly)

Returns the value of attribute models.



3
4
5
# File 'lib/parking/brand.rb', line 3

def models
  @models
end

.nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/parking/brand.rb', line 3

def name
  @name
end

Class Method Details

.foundationObject



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

.randomObject



18
19
20
# File 'lib/parking/brand.rb', line 18

def random
  models.sample
end