Sha256: 057ba23ebfce760cdfc569a0b245cf12b372eed8a1f7ba45998376f4dde8c373
Contents?: true
Size: 458 Bytes
Versions: 4
Compression:
Stored size: 458 Bytes
Contents
require "ddr_aux/client" module Ddr::Models class License < DdrAux::Client::License extend Deprecation attr_accessor :object_id def self.call(obj) if obj.license license = find(url: obj.license) license.object_id = obj.id license end end def pid Deprecation.warn(License, "`pid` is deprecated; use `object_id` instead.") object_id end def to_s title end end end
Version data entries
4 entries across 4 versions & 1 rubygems