Class: Logistics::Core::ServiceDeliveryUnitType

Inherits:
Lookup show all
Defined in:
app/models/logistics/core/service_delivery_unit_type.rb

Class Method Summary collapse

Methods inherited from ApplicationRecord

as_json

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