Sha256: 589ad0ad9787f5d894a091a0e24878fad4b3c2fe105c9e982ccc645af51b148b
Contents?: true
Size: 711 Bytes
Versions: 5
Compression:
Stored size: 711 Bytes
Contents
module Mks module Rate class ServiceRate < ApplicationRecord validates :base_rate, :utilization_rate, :chargeable_service_id, presence: true belongs_to :chargeable_service belongs_to :equipment_item, class_name: 'Mks::Edm::EquipmentItem', optional: true delegate(:name, to: :chargeable_service, prefix: true) delegate(:name, to: :equipment_item, prefix: true, allow_nil: true) delegate(:service_delivery_unit_id, to: :chargeable_service, prefix: false) delegate(:service_delivery_unit_name, to: :chargeable_service, prefix: false) alias_method :sdu_id, :service_delivery_unit_id alias_method :sdu_name, :service_delivery_unit_name end end end
Version data entries
5 entries across 5 versions & 1 rubygems