Class: OpenActive::Models::Schema::Vehicle

Inherits:
Product show all
Defined in:
lib/openactive/models/schema/vehicle.rb

Direct Known Subclasses

Car

Instance Attribute Summary collapse

Attributes inherited from Product

#additional_property, #aggregate_rating, #audience, #award, #awards, #brand, #category, #color, #depth, #gtin, #gtin12, #gtin13, #gtin14, #gtin8, #has_product_return_policy, #height, #is_accessory_or_spare_part_for, #is_consumable_for, #is_related_to, #is_similar_to, #item_condition, #logo, #manufacturer, #material, #model, #mpn, #nsn, #offers, #product_id, #release_date, #review, #reviews, #sku, #slogan, #weight, #width

Attributes inherited from Thing

#additional_type, #alternate_name, #description, #disambiguating_description, #identifier, #image, #main_entity_of_page, #name, #potential_action, #same_as, #subject_of, #url

Attributes inherited from JsonLdModel

#context, #id

Method Summary

Methods inherited from BaseModel

#assign_attributes, define_property, deserialize, #deserialize, deserialize_class, #initialize, #serialize, serialize, #set_property, #to_json

Methods included from Concerns::TypeChecker

#check_types, included

Methods included from Concerns::JsonLdSerializable

included, #to_h, #values

Constructor Details

This class inherits a constructor from OpenActive::BaseModel

Instance Attribute Details

#call_signString

Returns:

  • (String)


17
18
19
# File 'lib/openactive/models/schema/vehicle.rb', line 17

def call_sign
  @call_sign
end

#cargo_volumeOpenActive::Models::Schema::QuantitativeValue



41
42
43
# File 'lib/openactive/models/schema/vehicle.rb', line 41

def cargo_volume
  @cargo_volume
end

#date_vehicle_first_registeredDate?

Returns:

  • (Date, nil)


133
134
135
# File 'lib/openactive/models/schema/vehicle.rb', line 133

def date_vehicle_first_registered
  @date_vehicle_first_registered
end

#drive_wheel_configurationString, OpenActive::Models::Schema::DriveWheelConfigurationValue



115
116
117
# File 'lib/openactive/models/schema/vehicle.rb', line 115

def drive_wheel_configuration
  @drive_wheel_configuration
end

#fuel_consumptionOpenActive::Models::Schema::QuantitativeValue



12
13
14
# File 'lib/openactive/models/schema/vehicle.rb', line 12

def fuel_consumption
  @fuel_consumption
end

#fuel_efficiencyOpenActive::Models::Schema::QuantitativeValue



36
37
38
# File 'lib/openactive/models/schema/vehicle.rb', line 36

def fuel_efficiency
  @fuel_efficiency
end

#fuel_typeOpenActive::Enums::Schema::QualitativeValue, ...

Returns:



87
88
89
# File 'lib/openactive/models/schema/vehicle.rb', line 87

def fuel_type
  @fuel_type
end

#known_vehicle_damagesString

Returns:

  • (String)


68
69
70
# File 'lib/openactive/models/schema/vehicle.rb', line 68

def known_vehicle_damages
  @known_vehicle_damages
end

#mileage_from_odometerOpenActive::Models::Schema::QuantitativeValue



103
104
105
# File 'lib/openactive/models/schema/vehicle.rb', line 103

def mileage_from_odometer
  @mileage_from_odometer
end

#number_of_airbagsBigDecimal, ...

Returns:

  • (BigDecimal, String, nil)


80
81
82
# File 'lib/openactive/models/schema/vehicle.rb', line 80

def number_of_airbags
  @number_of_airbags
end

#number_of_axlesBigDecimal, ...

Returns:



46
47
48
# File 'lib/openactive/models/schema/vehicle.rb', line 46

def number_of_axles
  @number_of_axles
end

#number_of_doorsOpenActive::Models::Schema::QuantitativeValue, ...

Returns:



73
74
75
# File 'lib/openactive/models/schema/vehicle.rb', line 73

def number_of_doors
  @number_of_doors
end

#number_of_forward_gearsBigDecimal, ...

Returns:



29
30
31
# File 'lib/openactive/models/schema/vehicle.rb', line 29

def number_of_forward_gears
  @number_of_forward_gears
end

#number_of_previous_ownersOpenActive::Models::Schema::QuantitativeValue, ...

Returns:



22
23
24
# File 'lib/openactive/models/schema/vehicle.rb', line 22

def number_of_previous_owners
  @number_of_previous_owners
end

#production_dateDate?

Returns:

  • (Date, nil)


121
122
123
# File 'lib/openactive/models/schema/vehicle.rb', line 121

def production_date
  @production_date
end

#purchase_dateDate?

Returns:

  • (Date, nil)


127
128
129
# File 'lib/openactive/models/schema/vehicle.rb', line 127

def purchase_date
  @purchase_date
end

#steering_positionOpenActive::Models::Schema::SteeringPositionValue



53
54
55
# File 'lib/openactive/models/schema/vehicle.rb', line 53

def steering_position
  @steering_position
end

#typeString

Returns:

  • (String)


7
8
9
# File 'lib/openactive/models/schema/vehicle.rb', line 7

def type
  "schema:Vehicle"
end

#vehicle_configurationString

Returns:

  • (String)


155
156
157
# File 'lib/openactive/models/schema/vehicle.rb', line 155

def vehicle_configuration
  @vehicle_configuration
end

#vehicle_engineOpenActive::Models::Schema::EngineSpecification



63
64
65
# File 'lib/openactive/models/schema/vehicle.rb', line 63

def vehicle_engine
  @vehicle_engine
end

#vehicle_identification_numberString

Returns:

  • (String)


150
151
152
# File 'lib/openactive/models/schema/vehicle.rb', line 150

def vehicle_identification_number
  @vehicle_identification_number
end

#vehicle_interior_colorString

Returns:

  • (String)


145
146
147
# File 'lib/openactive/models/schema/vehicle.rb', line 145

def vehicle_interior_color
  @vehicle_interior_color
end

#vehicle_interior_typeString

Returns:

  • (String)


58
59
60
# File 'lib/openactive/models/schema/vehicle.rb', line 58

def vehicle_interior_type
  @vehicle_interior_type
end

#vehicle_model_dateDate?

Returns:

  • (Date, nil)


139
140
141
# File 'lib/openactive/models/schema/vehicle.rb', line 139

def vehicle_model_date
  @vehicle_model_date
end

#vehicle_seating_capacityBigDecimal, ...

Returns:



108
109
110
# File 'lib/openactive/models/schema/vehicle.rb', line 108

def vehicle_seating_capacity
  @vehicle_seating_capacity
end

#vehicle_transmissionOpenActive::Enums::Schema::QualitativeValue, ...

Returns:



95
96
97
# File 'lib/openactive/models/schema/vehicle.rb', line 95

def vehicle_transmission
  @vehicle_transmission
end