Class: Logistics::Core::ChargeableService

Inherits:
ApplicationRecord show all
Defined in:
app/models/logistics/core/chargeable_service.rb

Class Method Summary collapse

Methods inherited from ApplicationRecord

as_json

Class Method Details

.build(options = {}) ⇒ Object



9
10
11
# File 'app/models/logistics/core/chargeable_service.rb', line 9

def self.build(options = {})
  ChargeableService.new(options)
end

.get_chargeable_service_type(cs_id) ⇒ Object



13
14
15
16
# File 'app/models/logistics/core/chargeable_service.rb', line 13

def self.get_chargeable_service_type(cs_id)
  chargeable_service = ChargeableService.find(cs_id)
  chargeable_service.chargeable_service_type.name
end