Class: SpreeCmCommissioner::VehicleType

Inherits:
Base
  • Object
show all
Includes:
Integrations::IntegrationMappable, StoreMetadata, VehicleKind
Defined in:
app/models/spree_cm_commissioner/vehicle_type.rb

Constant Summary

Constants included from VehicleKind

SpreeCmCommissioner::VehicleKind::VEHICLE_KINDS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from VehicleKind

#display_vehicle_kind, options

Instance Attribute Details

#enable_seat_layoutObject

Returns the value of attribute enable_seat_layout.



12
13
14
# File 'app/models/spree_cm_commissioner/vehicle_type.rb', line 12

def enable_seat_layout
  @enable_seat_layout
end

Instance Method Details

#seat_layout?Boolean

Returns:

  • (Boolean)


32
33
34
# File 'app/models/spree_cm_commissioner/vehicle_type.rb', line 32

def seat_layout?
  preload_seat_layout_id.present?
end