Class: Logistics::Core::ServiceDeliveryUnitType
- Inherits:
-
Lookup
- Object
- ActiveRecord::Base
- ApplicationRecord
- Lookup
- Logistics::Core::ServiceDeliveryUnitType
- Defined in:
- app/models/logistics/core/service_delivery_unit_type.rb
Class Method Summary collapse
Methods inherited from ApplicationRecord
Class Method Details
.get_sdu_type_by_code(code) ⇒ Object
4 5 6 7 |
# File 'app/models/logistics/core/service_delivery_unit_type.rb', line 4 def self.get_sdu_type_by_code(code) sdu = ServiceDeliveryUnitType.where(code: code) return sdu[0] end |