Sha256: dbb0384dedd718c566129ad95c249762f88f00b577c5e46ae79938d4801c0a8e

Contents?: true

Size: 175 Bytes

Versions: 89

Compression:

Stored size: 175 Bytes

Contents

module Ddr::Models
  class ParentLicense

    def self.call(obj)
      if obj.respond_to?(:parent) && obj.parent
        License.call(obj.parent)
      end
    end

  end
end

Version data entries

89 entries across 89 versions & 1 rubygems

Version Path
ddr-models-2.7.6 lib/ddr/models/licenses/parent_license.rb
ddr-models-2.7.5 lib/ddr/models/licenses/parent_license.rb
ddr-models-2.7.4 lib/ddr/models/licenses/parent_license.rb
ddr-models-2.7.3 lib/ddr/models/licenses/parent_license.rb
ddr-models-2.7.2 lib/ddr/models/licenses/parent_license.rb
ddr-models-2.7.1 lib/ddr/models/licenses/parent_license.rb
ddr-models-2.7.0 lib/ddr/models/licenses/parent_license.rb
ddr-models-2.7.0.rc1 lib/ddr/models/licenses/parent_license.rb
ddr-models-2.6.2 lib/ddr/models/licenses/parent_license.rb
ddr-models-2.6.1 lib/ddr/models/licenses/parent_license.rb
ddr-models-2.6.0 lib/ddr/models/licenses/parent_license.rb
ddr-models-2.6.0.rc4 lib/ddr/models/licenses/parent_license.rb
ddr-models-2.6.0.rc3 lib/ddr/models/licenses/parent_license.rb
ddr-models-2.6.0.rc2 lib/ddr/models/licenses/parent_license.rb
ddr-models-2.6.0.rc1 lib/ddr/models/licenses/parent_license.rb
ddr-models-2.5.3 lib/ddr/models/licenses/parent_license.rb
ddr-models-2.5.2 lib/ddr/models/licenses/parent_license.rb
ddr-models-2.5.1 lib/ddr/models/licenses/parent_license.rb
ddr-models-2.5.0 lib/ddr/models/licenses/parent_license.rb
ddr-models-2.5.0.rc1 lib/ddr/models/licenses/parent_license.rb