Class: SpreeCmCommissioner::VehicleType

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



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

def enable_seat_layout
  @enable_seat_layout
end

Instance Method Details

#seat_layout?Boolean

Returns:

  • (Boolean)


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

def seat_layout?
  preload_seat_layout_id.present?
end